dependency compilation
This commit is contained in:
10
example_dependency_configs/libexample1.config
Normal file
10
example_dependency_configs/libexample1.config
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
DEP_WORKING_DIR='depencencies/libexample1'
|
||||
DEP_PRE_BUILD_COMMAND=''
|
||||
DEP_BUILD_COMMAND='make libexample1.a'
|
||||
DEP_POST_BUILD_COMMAND=''
|
||||
DEP_CLEAN_COMMAND='make clean'
|
||||
# won't be copied to project $OUTDIR
|
||||
DEP_STATIC_OUT_FILES='libexample1.a libexample1_addon.a'
|
||||
# will be copied tp project $OUTDIR
|
||||
DEP_DYNAMIC_OUT_FILES='libexample1.config.json'
|
||||
19
example_dependency_configs/libexample2.config
Normal file
19
example_dependency_configs/libexample2.config
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
DEP_WORKING_DIR='depencencies/libexample2'
|
||||
DEP_PRE_BUILD_COMMAND=''
|
||||
DEP_POST_BUILD_COMMAND=''
|
||||
DEP_CLEAN_COMMAND='make clean'
|
||||
DEP_STATIC_OUT_FILES=''
|
||||
case $OS in
|
||||
WINDOWS)
|
||||
DEP_BUILD_COMMAND='make libexample2.dll'
|
||||
DEP_DYNAMIC_OUT_FILES='libexample2.dll'
|
||||
;;
|
||||
LINUX)
|
||||
DEP_BUILD_COMMAND='make libexample2.so'
|
||||
DEP_DYNAMIC_OUT_FILES='libexample2.so'
|
||||
;;
|
||||
*)
|
||||
error "operating system $OS has no configuration variants"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user