applied Daniel Hedlunds patch that works around jam commandline limit
[supertux.git] / src / Jamfile
1 SubDir TOP src ;
2
3 SubInclude TOP src squirrel ;
4 SubInclude TOP src scripting ;
5
6 #------------------------
7 # SuperTux ARCHIVE FILES:
8 #------------------------
9 # the following keeps the .o files after an archive file (.a) is created
10 NOARUPDATE = true ;
11
12 for i in audio badguy control gui lisp math object physfs sprite
13     tinygettext trigger video worldmap
14 {
15     sources = [ Wildcard $(i) : *.cpp *.hpp ] ;
16     Library $(i) : $(sources) : noinstall ;
17     TRANSLATABLE_SOURCES += [ SearchSource $(sources) ] ;
18 }
19
20 ExternalLibs audio badguy control gui lisp math object physfs sprite
21       tinygettext trigger video worldmap
22     : SDL SDLIMAGE GL OPENAL VORBIS VORBISFILE OGG ICONV PHYSFS BINRELOC ;
23 IncludeDir audio badguy control gui lisp math object physfs sprite
24       tinygettext trigger video worldmap
25     : squirrel/include squirrel ;
26
27 #----------------------
28 # SuperTux Application:
29 #----------------------
30 sources = [ Wildcard *.cpp *.hpp ] ;
31 TRANSLATABLE_SOURCES += [ SearchSource $(sources) ] ;
32
33 Application supertux : $(sources) $(wrapper_objects) ;
34 C++Flags supertux : -DAPPDATADIR='\"$(appdatadir)\"' ;
35 LinkWith supertux : squirrel ;
36 ExternalLibs supertux : SDL SDLIMAGE GL OPENAL VORBIS VORBISFILE OGG ICONV PHYSFS BINRELOC ;
37 Help supertux : "Build the supertux executable" ;
38 IncludeDir supertux : squirrel/include squirrel ;
39
40 LinkWithWholeArchive supertux : audio badguy control gui lisp math object physfs sprite
41     tinygettext trigger video worldmap ;