| 1 | package DMM
|
|---|
| 2 | version v0
|
|---|
| 3 |
|
|---|
| 4 | use OpenScientist v16r0 Interfaces
|
|---|
| 5 |
|
|---|
| 6 | #//////////////////////////////////////////////////
|
|---|
| 7 | #//////////////////////////////////////////////////
|
|---|
| 8 | #//////////////////////////////////////////////////
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | branches run applications
|
|---|
| 12 |
|
|---|
| 13 | build_strategy no_prototypes
|
|---|
| 14 | include_path none
|
|---|
| 15 |
|
|---|
| 16 | include_dirs ${DMMROOT} ${DMMROOT}/../../Resources/boost-1_34
|
|---|
| 17 |
|
|---|
| 18 | #////////////////////////////////////////////////////////////
|
|---|
| 19 | #/// From Interfaces/Platform ///////////////////////////////
|
|---|
| 20 | #////////////////////////////////////////////////////////////
|
|---|
| 21 |
|
|---|
| 22 | macro Platform_bin "${CMTCONFIG}"
|
|---|
| 23 | #set PLATFORMBIN "${Platform_bin}"
|
|---|
| 24 |
|
|---|
| 25 | pattern Platform_paths \
|
|---|
| 26 | path_remove LD_LIBRARY_PATH "$(<PACKAGE>ROOT)/$(Platform_bin)" WIN32 "" Darwin "" ;\
|
|---|
| 27 | path_append LD_LIBRARY_PATH "$(<PACKAGE>ROOT)/$(Platform_bin)" WIN32 "" Darwin "" ;\
|
|---|
| 28 | path_remove DYLD_LIBRARY_PATH "" Darwin "$(<PACKAGE>ROOT)/$(Platform_bin)" ;\
|
|---|
| 29 | path_append DYLD_LIBRARY_PATH "" Darwin "$(<PACKAGE>ROOT)/$(Platform_bin)" ;\
|
|---|
| 30 | path_remove PATH "$(<PACKAGE>ROOT)/$(Platform_bin)" WIN32 "$(<PACKAGE>ROOT)\$(Platform_bin)" ;\
|
|---|
| 31 | path_append PATH "$(<PACKAGE>ROOT)/$(Platform_bin)" WIN32 "$(<PACKAGE>ROOT)\$(Platform_bin)"
|
|---|
| 32 |
|
|---|
| 33 | # Darwin : to build dlls properly :
|
|---|
| 34 | macro make_shlib "$(make_shlib)" Darwin "$(DMMROOT)/cmt/cmt_make_shlib_common.sh extract"
|
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 | #//////////////////////////////////////////////////
|
|---|
| 38 | #//////////////////////////////////////////////////
|
|---|
| 39 | #//////////////////////////////////////////////////
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|
| 42 | macro DMM_cppflags "-I${OSC_home}/Resources/Slash"
|
|---|
| 43 |
|
|---|
| 44 | library DMMCore *.cxx
|
|---|
| 45 | macro DMMCore_linkopts "-L${DMMROOT}/${Platform_bin} -lDMMCore"
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | application test -group=debug ../applications/test.cxx use_linkopts='"${DMMCore_linkopts}"'
|
|---|
| 50 |
|
|---|
| 51 | application test1 -group=Boost ../applications/test1.cxx
|
|---|
| 52 | application test2 -group=Boost ../applications/test2.cxx
|
|---|
| 53 | #//////////////////////////////////////////////////
|
|---|
| 54 | #//////////////////////////////////////////////////
|
|---|
| 55 | #//////////////////////////////////////////////////
|
|---|
| 56 |
|
|---|
| 57 | private
|
|---|
| 58 | macro build_library_links "true" WIN32 ""
|
|---|
| 59 | macro remove_library_links "true" WIN32 ""
|
|---|
| 60 |
|
|---|
| 61 | # WIN32 : /GR to enable RTTI and dynamic cast.
|
|---|
| 62 | # WIN32 : /GX to enable exception handling (for STL).
|
|---|
| 63 | macro_append cppflags "" WIN32 " /GX /GR"
|
|---|
| 64 |
|
|---|
| 65 | # DEBUG :
|
|---|
| 66 | #macro_append cflags " -g" WIN32 " /ZI /Od"
|
|---|
| 67 | #macro_append cppflags " -g" WIN32 " /ZI /Od"
|
|---|
| 68 | #macro_append cpplinkflags " -g" WIN32 " /DEBUG"
|
|---|
| 69 |
|
|---|
| 70 | # OPTIMIZE :
|
|---|
| 71 | macro_append cflags " -O" WIN32 " /O2"
|
|---|
| 72 | macro_append cppflags " -O" WIN32 " /O2"
|
|---|
| 73 | macro_append cpplinkflags " -O" WIN32 ""
|
|---|
| 74 | public
|
|---|
| 75 |
|
|---|
| 76 | #//////////////////////////////////////////////////
|
|---|
| 77 | #// Run time //////////////////////////////////////
|
|---|
| 78 | #//////////////////////////////////////////////////
|
|---|
| 79 |
|
|---|
| 80 | apply_pattern Platform_paths
|
|---|