source: DMM/cmt/requirements @ 413

Last change on this file since 413 was 373, checked in by campagne, 17 years ago

Data Model for MEMPHYS

File size: 2.6 KB
Line 
1package DMM
2version v0
3
4use OpenScientist v16r0 Interfaces
5
6#//////////////////////////////////////////////////
7#//////////////////////////////////////////////////
8#//////////////////////////////////////////////////
9
10
11branches run applications
12
13build_strategy no_prototypes
14include_path none
15
16include_dirs ${DMMROOT} ${DMMROOT}/../../Resources/boost-1_34
17
18#////////////////////////////////////////////////////////////
19#/// From Interfaces/Platform ///////////////////////////////
20#////////////////////////////////////////////////////////////
21
22macro Platform_bin "${CMTCONFIG}"
23#set PLATFORMBIN "${Platform_bin}"
24
25pattern 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 :
34macro make_shlib "$(make_shlib)" Darwin "$(DMMROOT)/cmt/cmt_make_shlib_common.sh extract"
35
36
37#//////////////////////////////////////////////////
38#//////////////////////////////////////////////////
39#//////////////////////////////////////////////////
40
41
42macro DMM_cppflags "-I${OSC_home}/Resources/Slash"
43
44library DMMCore *.cxx
45macro DMMCore_linkopts "-L${DMMROOT}/${Platform_bin} -lDMMCore"
46
47
48
49application test -group=debug ../applications/test.cxx use_linkopts='"${DMMCore_linkopts}"'
50
51application test1 -group=Boost ../applications/test1.cxx
52application test2 -group=Boost ../applications/test2.cxx
53#//////////////////////////////////////////////////
54#//////////////////////////////////////////////////
55#//////////////////////////////////////////////////
56
57private
58macro build_library_links "true" WIN32 ""
59macro remove_library_links "true" WIN32 ""
60
61# WIN32 : /GR to enable RTTI and dynamic cast.
62# WIN32 : /GX to enable exception handling (for STL).
63macro_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 :
71macro_append cflags  " -O" WIN32 " /O2"
72macro_append cppflags  " -O" WIN32 " /O2"
73macro_append cpplinkflags  " -O" WIN32 ""
74public
75
76#//////////////////////////////////////////////////
77#// Run time //////////////////////////////////////
78#//////////////////////////////////////////////////
79
80apply_pattern Platform_paths
Note: See TracBrowser for help on using the repository browser.