~ubuntu-branches/ubuntu/utopic/rlvm/utopic-proposed

« back to all changes in this revision

Viewing changes to .pc/001_Use_system_library.patch/SConstruct

  • Committer: Bazaar Package Importer
  • Author(s): Ying-Chun Liu (PaulLiu), Ying-Chun Liu (PaulLiu), Elliot Glaysher
  • Date: 2011-05-19 00:28:44 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20110519002844-qszwmj7oiixww0eg
Tags: 0.12-1
[ Ying-Chun Liu (PaulLiu) <paulliu@debian.org> ]
* New upstream release

[ Elliot Glaysher <glaysher@umich.edu> ]
* New GTK+ interface with desktop integration and UI refinements
* Partial Japanese localizations
* Fix graphics corruption in in-game dialogs when a dialog is brought
  up, and then fullscreen mode activated
* Smooth the output of text in rlBabel using games
* Don't play voice samples while fast forwarding

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    "boost_iostreams-mt",
26
26
    "boost_filesystem-mt",
27
27
    "boost_date_time-mt",
28
 
    "boost_signals-mt",
29
28
    "boost_thread-mt",
30
29
    "boost_system-mt",
31
30
    "z"
46
45
  CPPDEFINES = [
47
46
    "HAVE_CONFIG_H",
48
47
 
 
48
    # boost made a large non-backwards compatible change to their filesystem
 
49
    # library. Specify version 2 explicitly.
 
50
    ["BOOST_FILESYSTEM_VERSION", 2],
 
51
 
 
52
    # We use gettext for translations.
 
53
    "ENABLE_NLS",
 
54
 
49
55
    # This prevents conflicts between SDL and GLEW. I shouldn't have to do
50
56
    # this, but the SDL_opengl.h and glew.h differ in const correctness...
51
57
    "NO_SDL_GLEXT"
206
212
  print "Boost version >= 1.40 needed to compile rlvm!"
207
213
  Exit(1)
208
214
 
 
215
VerifyLibrary(config, 'pthread', 'pthread.h')
209
216
VerifyLibrary(config, 'ogg', 'ogg/ogg.h')
210
217
VerifyLibrary(config, 'vorbis', 'vorbis/codec.h')
211
218
VerifyLibrary(config, 'vorbisfile', 'vorbis/vorbisfile.h')
239
246
    'function' : ''
240
247
  },
241
248
  {
242
 
    'include'  : 'SDL/SDL_image.h',
243
 
    'library'  : 'SDL_image',
244
 
    'function' : ''
 
249
      'include'  : 'SDL/SDL_image.h',
 
250
      'library'  : 'SDL_image',
 
251
      'function' : ''
245
252
  }
246
253
]
 
254
 
247
255
for library_dict in local_sdl_libraries:
248
256
  CheckForSystemLibrary(config, library_dict, subcomponents)
249
257
 
263
271
### we have the right libraries. This needs to be done after config.Finish() is
264
272
### called or else we get a really confusing error.
265
273
if env['PLATFORM'] == 'darwin':
266
 
  env.Append(LIBS=["SDL"])
 
274
  env.Append(LIBS=["SDL", "intl", "iconv"])
267
275
 
268
276
# Get the configuration from sdl and freetype
269
277
env.ParseConfig("sdl-config --cflags")
329
337
    ]
330
338
  )
331
339
 
 
340
# Cross platform core of rlvm. Produces librlvm.a and libsystem_sdl.a
332
341
env.SConscript("SConscript",
333
342
               variant_dir="$BUILD_DIR/",
334
343
               duplicate=0,
335
344
               exports='env')
336
345
 
 
346
# Run the correct port script. If we're on darwin, we'll run the cocoa version,
 
347
# everywhere else we assume GTK+.
 
348
if env['PLATFORM'] == 'darwin':
 
349
  env.SConscript("SConscript.cocoa",
 
350
                 variant_dir="$BUILD_DIR/",
 
351
                 duplicate=0,
 
352
                 exports='env')
 
353
else:
 
354
  env.SConscript("SConscript.gtk",
 
355
                 variant_dir="$BUILD_DIR/",
 
356
                 duplicate=0,
 
357
                 exports='env')
 
358
 
337
359
# Copy the platform independent SEEN.TXT files to output (we no longer depend
338
360
# on rldev because I can no longer reliably compile it).
339
361
env.SConscript("test/SConscript.rlc",
352
374
               duplicate=0,
353
375
               exports='env')
354
376
 
355
 
if GetOption("fullstatic") and env['PLATFORM'] == 'darwin':
356
 
  env.SConscript("SConscript.cocoa",
357
 
                 variant_dir="$BUILD_DIR/",
358
 
                 duplicate=0,
359
 
                 exports='env')
360
 
 
361
377
if GetOption("coverage"):
362
378
  env.SConscript("SConscript.coverage",
363
379
                 variant_dir="$BUILD_DIR/",
364
380
                 duplicate=0,
365
381
                 exports='env')
 
382
 
 
383
# In addition to all that, we also want to build the translation files.
 
384
env.Command("build/locale/ja/LC_MESSAGES/rlvm.mo",
 
385
            "po/ja.po",
 
386
            ["mkdir -p build/locale/ja/LC_MESSAGES/",
 
387
             "msgfmt -o build/locale/ja/LC_MESSAGES/rlvm.mo po/ja.po"])