Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 89 lines (82 sloc) 5.318 kb
d78a429 Massive cleanup:
Eduard Burtescu authored
1 import os
2 import re
6e38010 Sconstruct changes
Eduard Burtescu authored
3 import sys
d78a429 Massive cleanup:
Eduard Burtescu authored
4
6e38010 Sconstruct changes
Eduard Burtescu authored
5 env = Environment()
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
6
c6cc5fa v8-gearbox can now be built using MinGW crosscompilers. Detailed inst…
Eduard Burtescu authored
7 crossmingw = ARGUMENTS.get('crossmingw', 0)
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
8 env['USING_CROSSMINGW'] = False
c6cc5fa v8-gearbox can now be built using MinGW crosscompilers. Detailed inst…
Eduard Burtescu authored
9 if int(crossmingw):
10 env.Tool('crossmingw', toolpath = ['#tools'])
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
11 env['USING_CROSSMINGW'] = True
6e38010 Sconstruct changes
Eduard Burtescu authored
12
13 # Windows gets special treatement
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
14 if sys.platform == 'win32' or env['USING_CROSSMINGW']:
d1618de Sconstruct: Print a nice message on windows, if there is no contrib d…
Eduard Burtescu authored
15 if not os.path.exists('contrib'):
16 print ""
17 print "============================================================================="
18 print "For building v8-gearbox on windows you need to make a directory named contrib"
19 print "and put the following in there: v8 (you need to build it yourself), readline,"
b0b3dc7 Sconstruct: More work towards having a windows build.
Eduard Burtescu authored
20 print "freeglut, pdcurses, mysql-connector-c and SDL. Also you can only use MinGW to"
d1618de Sconstruct: Print a nice message on windows, if there is no contrib d…
Eduard Burtescu authored
21 print "build v8-gearbox. Have a nice day :)"
22 print "============================================================================="
23 print ""
24 sys.exit(1)
b836699 A few fixes for the windows build.
Eduard Burtescu authored
25 env.Append(CPPPATH = Glob(os.path.join('#contrib', '*', 'include')))
26 env.Append(CPPPATH = Glob(os.path.join('#contrib', '*')))
27 env.Append(CPPPATH = '#src')
28 env.Append(LIBPATH = Glob(os.path.join('#contrib', '*', 'bin')))
29 env.Append(LIBPATH = Glob(os.path.join('#contrib', '*', 'lib')))
30 env.Append(LIBPATH = Glob(os.path.join('#contrib', '*')))
c6cc5fa v8-gearbox can now be built using MinGW crosscompilers. Detailed inst…
Eduard Burtescu authored
31 env.Append(LINKFLAGS = '-static-libgcc -static-libstdc++')
32 env.Append(CXXFLAGS = '-std=c++0x -O3 -fno-var-tracking-assignments')
33 env.Append(LIBS = ['v8', 'readline', 'opengl32', 'glu32', 'freeglut', 'curses', 'pthread', 'mysql', 'ws2_32' , 'winmm', 'SDL', 'SDLmain'])
6e38010 Sconstruct changes
Eduard Burtescu authored
34 else:
35 env.ParseConfig('mysql_config --cflags --libs')
c29ff02 @iamsanjeev Seperate init and gear files
iamsanjeev authored
36 env.ParseConfig('pkg-config --cflags --libs gl')
37 env.ParseConfig('pkg-config --cflags --libs eina')
38 env.ParseConfig('pkg-config --cflags --libs eet')
39 env.ParseConfig('pkg-config --cflags --libs evas')
40 env.ParseConfig('pkg-config --cflags --libs ecore')
41 env.ParseConfig('pkg-config --cflags --libs ecore-evas')
42 env.ParseConfig('pkg-config --cflags --libs ecore-file')
43 env.ParseConfig('pkg-config --cflags --libs ecore-imf')
44 env.ParseConfig('pkg-config --cflags --libs ecore-con')
45 env.ParseConfig('pkg-config --cflags --libs edje')
46 env.ParseConfig('pkg-config --cflags --libs edbus')
47 env.ParseConfig('pkg-config --cflags --libs efreet')
48 env.ParseConfig('pkg-config --cflags --libs efreet-mime')
49 env.ParseConfig('pkg-config --cflags --libs efreet-trash')
50 env.ParseConfig('pkg-config --cflags --libs elementary')
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
51 env.Append(CPPPATH = '#src')
6e38010 Sconstruct changes
Eduard Burtescu authored
52 env.Append(LINKFLAGS = '-Wl,--no-warn-search-mismatch')
3459336 Sconstruct: -ffast-math can cause precision problems.
Eduard Burtescu authored
53 env.Append(CXXFLAGS = '-std=c++0x -O3 -fno-var-tracking-assignments')
7baa36e @iamsanjeev Fix build issues.
iamsanjeev authored
54 env.Append(LIBS = ['v8', 'readline', 'GL', 'GLU', 'glut', 'SDL', 'tinfo', 'ncurses'])
d78a429 Massive cleanup:
Eduard Burtescu authored
55
56 # Pretty output
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
57 if sys.platform == 'win32' or not hasattr(os.environ, 'TERM') or os.environ['TERM'] == 'dumb':
d8b2416 Better pretty printing for scons.
Eduard Burtescu authored
58 env['CCCOMSTR'] = ' Compiling $SOURCES -> $TARGET'
59 env['CXXCOMSTR'] = ' Compiling $SOURCES -> $TARGET'
60 env['ASCOMSTR'] = ' Assembling $SOURCES -> $TARGET'
61 env['LINKCOMSTR'] = ' Linking $SOURCES -> $TARGET'
62 env['ARCOMSTR'] = ' Archiving $SOURCES -> $TARGET'
63 env['RANLIBCOMSTR'] = ' Indexing $SOURCES -> $TARGET'
64 env['NMCOMSTR'] = ' Creating map $SOURCES -> $TARGET'
65 env['DOCCOMSTR'] = ' Documenting $SOURCES -> $TARGET'
66 env['TARCOMSTR'] = ' Creating $SOURCES -> $TARGET'
06e2036 Gear2CC: Replaced JSCC with CodeAze, an unpublished project of mine. …
Eduard Burtescu authored
67 env['AZE2JSCOMSTR'] = ' Converting $SOURCES -> $TARGET'
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
68 env['GEAR2CCCOMSTR'] =' Converting $SOURCES -> $TARGETS'
d78a429 Massive cleanup:
Eduard Burtescu authored
69 else:
d8b2416 Better pretty printing for scons.
Eduard Burtescu authored
70 env['CCCOMSTR'] = ' Compiling \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
71 env['CXXCOMSTR'] = ' Compiling \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
72 env['ASCOMSTR'] = ' Assembling \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
73 env['LINKCOMSTR'] = ' Linking \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
74 env['ARCOMSTR'] = ' Archiving \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
75 env['RANLIBCOMSTR'] = ' Indexing \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
76 env['NMCOMSTR'] = ' Creating map \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
77 env['DOCCOMSTR'] = ' Documenting \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
78 env['TARCOMSTR'] = ' Creating \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
06e2036 Gear2CC: Replaced JSCC with CodeAze, an unpublished project of mine. …
Eduard Burtescu authored
79 env['AZE2JSCOMSTR'] = ' Converting \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGET\033[0m'
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
80 env['GEAR2CCCOMSTR'] =' Converting \033[32m$SOURCES\033[0m\033[1m -> \033[0m\033[32m$TARGETS\033[0m'
6e38010 Sconstruct changes
Eduard Burtescu authored
81
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
82 env['BUILD_DIR'] = 'build'
83 env['GEARBOX'] = env['BUILD_DIR'] + os.sep + 'gearbox' + env['PROGSUFFIX']
84 env['GEARBOX_EXISTS'] = os.path.exists(env['GEARBOX'])
06e2036 Gear2CC: Replaced JSCC with CodeAze, an unpublished project of mine. …
Eduard Burtescu authored
85 env['BUILDERS']['Aze2JS'] = Builder(action=Action(env['GEARBOX']+' gear2cc'+os.sep+'aze2js.js $SOURCE $TARGET', cmdstr=env['AZE2JSCOMSTR']))
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
86 env['BUILDERS']['Gear2CC'] = Builder(action=Action(env['GEARBOX']+' gear2cc'+os.sep+'gear2cc.js $SOURCE', cmdstr=env['GEAR2CCCOMSTR']))
6e38010 Sconstruct changes
Eduard Burtescu authored
87
87195f6 Polished the build system so that dependencies work as they should an…
Eduard Burtescu authored
88 SConscript('src/SConscript', variant_dir = env['BUILD_DIR'], exports = ['env'], duplicate = 0)
Something went wrong with that request. Please try again.