Skip to content

Commit

Permalink
Use header only library target to allow it to be used as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Feb 12, 2025
1 parent 7003cce commit 47d6bec
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_master.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"include_dirs" : [ "include" ],
"targets" :
[
{
"name" : "playvk_headers",
"is_header_only_library" : true,
"subdirs" : [ "PlayVk" ]
},
{
"name" : "main",
"is_executable" : true,
Expand Down
30 changes: 30 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,36 @@ message('pkg config path: ' + pkgconfig_install_path)
#--------------------------------BUILD TARGETS----------------------------------
pkgmod = import('pkgconfig')

# -------------- Target: playvk_headers ------------------
playvk_headers_sources = [

]
playvk_headers_dependencies = [

]
playvk_headers_link_args = {
'windows' : [],
'linux' : [],
'darwin' : []
}
playvk_headers_build_defines = [

]
playvk_headers_use_defines = [

]
playvk_headers_dep = declare_dependency(
include_directories: inc,
compile_args: playvk_headers_use_defines + build_mode_defines
)
pkgmod.generate( name: 'PlayVk',
description: 'Single header file library for simplifying vulkan',
filebase: 'playvk_headers',
install_dir: pkgconfig_install_path,
subdirs: [ 'PlayVk' ],
extra_cflags: playvk_headers_use_defines + build_mode_defines
)

# -------------- Target: main ------------------
main_sources = [
'source/main.c'
Expand Down

0 comments on commit 47d6bec

Please sign in to comment.