diff options
Diffstat (limited to 'src/mapi/shared-glapi/SConscript')
-rw-r--r-- | src/mapi/shared-glapi/SConscript | 101 |
1 files changed, 50 insertions, 51 deletions
diff --git a/src/mapi/shared-glapi/SConscript b/src/mapi/shared-glapi/SConscript index b7c43a7347..f17a4dd892 100644 --- a/src/mapi/shared-glapi/SConscript +++ b/src/mapi/shared-glapi/SConscript @@ -63,54 +63,53 @@ def mapi_objects(env, printer, mode): return objects -if env['platform'] != 'winddk': - env = env.Clone() - - env['SHLIBPREFIX'] = 'lib' - env['LIBPREFIX'] = 'lib' - - shared_glapi_objects = mapi_objects(env, 'shared-glapi', 'glapi') - shared_glapi = env.SharedLibrary( - target = 'glapi', - source = shared_glapi_objects, - ) - - # manually add LIBPREFIX on windows - if env['platform'] == 'windows': - libs = ['libglapi'] - else: - libs = ['glapi'] - - es1api_objects = mapi_objects(env, 'es1api', 'bridge') - es1api = env.SharedLibrary( - target = 'GLESv1_CM', - source = es1api_objects, - LIBPATH = ['.'], - LIBS = libs, - ) - - es2api_objects = mapi_objects(env, 'es2api', 'bridge') - es2api = env.SharedLibrary( - target = 'GLESv2', - source = es2api_objects, - LIBPATH = ['.'], - LIBS = libs, - ) - - env.InstallSharedLibrary(shared_glapi, version=(0, 0, 0)) - env.InstallSharedLibrary(es1api, version=(1, 0, 0)) - env.InstallSharedLibrary(es2api, version=(2, 0, 0)) - - if env['platform'] == 'windows': - shared_glapi = env.FindIxes(shared_glapi, 'LIBPREFIX', 'LIBSUFFIX') - else: - shared_glapi = env.FindIxes(shared_glapi, 'SHLIBPREFIX', 'SHLIBSUFFIX') - - # build glapi bridge as a convenience libarary for libgl-xlib/libgl-gdi - bridge_glapi_objects = mapi_objects(env, 'glapi', 'bridge') - bridge_glapi = env.ConvenienceLibrary( - target = 'glapi_bridge', - source = bridge_glapi_objects, - ) - - Export(['shared_glapi', 'bridge_glapi']) +env = env.Clone() + +env['SHLIBPREFIX'] = 'lib' +env['LIBPREFIX'] = 'lib' + +shared_glapi_objects = mapi_objects(env, 'shared-glapi', 'glapi') +shared_glapi = env.SharedLibrary( + target = 'glapi', + source = shared_glapi_objects, +) + +# manually add LIBPREFIX on windows +if env['platform'] == 'windows': + libs = ['libglapi'] +else: + libs = ['glapi'] + +es1api_objects = mapi_objects(env, 'es1api', 'bridge') +es1api = env.SharedLibrary( + target = 'GLESv1_CM', + source = es1api_objects, + LIBPATH = ['.'], + LIBS = libs, +) + +es2api_objects = mapi_objects(env, 'es2api', 'bridge') +es2api = env.SharedLibrary( + target = 'GLESv2', + source = es2api_objects, + LIBPATH = ['.'], + LIBS = libs, +) + +env.InstallSharedLibrary(shared_glapi, version=(0, 0, 0)) +env.InstallSharedLibrary(es1api, version=(1, 0, 0)) +env.InstallSharedLibrary(es2api, version=(2, 0, 0)) + +if env['platform'] == 'windows': + shared_glapi = env.FindIxes(shared_glapi, 'LIBPREFIX', 'LIBSUFFIX') +else: + shared_glapi = env.FindIxes(shared_glapi, 'SHLIBPREFIX', 'SHLIBSUFFIX') + +# build glapi bridge as a convenience libarary for libgl-xlib/libgl-gdi +bridge_glapi_objects = mapi_objects(env, 'glapi', 'bridge') +bridge_glapi = env.ConvenienceLibrary( + target = 'glapi_bridge', + source = bridge_glapi_objects, +) + +Export(['shared_glapi', 'bridge_glapi']) |