8b2694efb7
* fix build for openssl 1.1.1b required for sdk (cherry picked from commitaa49e3b275
) * use js code from master * fix openssl recipe and tweak build (cherry picked from commit6e94c27021
) * remove unused build recipes (cherry picked from commitf5c0577bdb
)
34 lines
1.1 KiB
Python
Executable file
34 lines
1.1 KiB
Python
Executable file
from distutils.core import setup, Extension
|
|
import os
|
|
|
|
library_dirs = ['libs/' + os.environ['ARCH']]
|
|
lib_dict = {
|
|
'pygame': ['sdl'],
|
|
'sdl2': ['SDL2', 'SDL2_image', 'SDL2_mixer', 'SDL2_ttf']
|
|
}
|
|
sdl_libs = lib_dict.get(os.environ['BOOTSTRAP'], [])
|
|
|
|
renpy_sound = Extension('android._android_sound',
|
|
['android/_android_sound.c', 'android/_android_sound_jni.c', ],
|
|
libraries=sdl_libs + ['log'],
|
|
library_dirs=library_dirs)
|
|
|
|
modules = [Extension('android._android',
|
|
['android/_android.c', 'android/_android_jni.c'],
|
|
libraries=sdl_libs + ['log'],
|
|
library_dirs=library_dirs),
|
|
Extension('android._android_billing',
|
|
['android/_android_billing.c', 'android/_android_billing_jni.c'],
|
|
libraries=['log'],
|
|
library_dirs=library_dirs)]
|
|
|
|
if int(os.environ['IS_PYGAME']):
|
|
modules.append(renpy_sound)
|
|
|
|
|
|
setup(name='android',
|
|
version='1.0',
|
|
packages=['android'],
|
|
package_dir={'android': 'android'},
|
|
ext_modules=modules
|
|
)
|