301 lines
9.0 KiB
XML
301 lines
9.0 KiB
XML
<xml>
|
|
|
|
<set name="PLATFORM" value="android-9" if="android" />
|
|
<set name="PLATFORM" value="android-14" if="HXCPP_X86" />
|
|
<set name="HXCPP_CPP11" value="1" />
|
|
|
|
<include name="${HXCPP}/build-tool/BuildCommon.xml" />
|
|
|
|
<set name="lime-legacy" value="1" if="legacy || lime_legacy" />
|
|
<set name="ios" value="1" if="iphone" />
|
|
|
|
<set name="LIME_CURL" value="1" unless="emscripten" />
|
|
<set name="LIME_JPEG" value="1" />
|
|
<set name="LIME_FREETYPE" value="1" />
|
|
<set name="LIME_HARFBUZZ" value="1" />
|
|
<!-- <set name="LIME_NEKO" value="1" if="linux" /> -->
|
|
<set name="LIME_OGG" value="1" />
|
|
<set name="LIME_OPENAL" value="1" />
|
|
<set name="LIME_OPENGL" value="1" />
|
|
<set name="LIME_PNG" value="1" />
|
|
<set name="LIME_SDL" value="1" />
|
|
<set name="LIME_VORBIS" value="1" />
|
|
<set name="LIME_ZLIB" value="1" />
|
|
|
|
<set name="OUTPUT_DIR" value="../ndll" unless="OUTPUT_DIR" />
|
|
<set name="NATIVE_TOOLKIT_PATH" value="lib" unless="NATIVE_TOOLKIT_PATH" />
|
|
|
|
<set name="NATIVE_TOOLKIT_CURL_SSL" value="1" />
|
|
<set name="NATIVE_TOOLKIT_SDL_STATIC" value="1" />
|
|
|
|
<files id="lime">
|
|
|
|
<compilerflag value="-DLIME_SDL" if="LIME_SDL" />
|
|
<compilerflag value="-Iinclude" />
|
|
|
|
<file name="src/ExternalInterface.cpp" />
|
|
|
|
<section if="LIME_CURL">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/curl/include/" />
|
|
<compilerflag value="-DLIME_CURL" />
|
|
<compilerflag value="-DCURL_STATICLIB" />
|
|
|
|
<file name="src/net/curl/CURLBindings.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_JPEG">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/jpeg/" />
|
|
<compilerflag value="-DLIME_JPEG" />
|
|
|
|
<file name="src/graphics/format/JPEG.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_FREETYPE">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/freetype/include" />
|
|
<compilerflag value="-DLIME_FREETYPE" />
|
|
|
|
<file name="src/text/Font.cpp" />
|
|
|
|
<section if="LIME_HARFBUZZ">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/harfbuzz/src" />
|
|
<compilerflag value="-DLIME_HARFBUZZ" />
|
|
|
|
<file name="src/text/TextLayout.cpp" />
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<section if="LIME_NEKO">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/neko/vm/" />
|
|
<compilerflag value="-DLIME_NEKO" />
|
|
|
|
<file name="src/vm/NekoVM.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_OGG">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/ogg/include/" />
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/vorbis/include/" />
|
|
<compilerflag value="-DLIME_OGG" />
|
|
|
|
<file name="src/audio/format/OGG.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_OPENAL">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal/include/" unless="android || emscripten" />
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal-android/include/" if="android" />
|
|
<compilerflag value="-DLIME_OPENAL" />
|
|
<compilerflag value="-DAL_LIBTYPE_STATIC=1" />
|
|
|
|
<file name="src/audio/openal/OpenALBindings.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_OPENGL">
|
|
|
|
<compilerflag value="-DLIME_OPENGL" />
|
|
|
|
<file name="src/graphics/opengl/OpenGLBindings.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_PNG">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/png/" />
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/zlib/" />
|
|
<compilerflag value="-DLIME_PNG" />
|
|
|
|
<file name="src/graphics/format/PNG.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_SDL">
|
|
|
|
<section if="emscripten">
|
|
|
|
<compilerflag value="-s" />
|
|
<compilerflag value="USE_SDL=2" />
|
|
|
|
</section>
|
|
|
|
<section unless="emscripten">
|
|
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/sdl/include/" />
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/sdl/include/configs/default/" unless="windows || mac || linux"/>
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/sdl/include/configs/linux/" if="linux"/>
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/sdl/include/configs/windows/" if="windows"/>
|
|
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/sdl/include/configs/mac/" if="mac"/>
|
|
<compilerflag value="-DHAVE_LIBC" />
|
|
|
|
</section>
|
|
|
|
<compilerflag value="-DLIME_SDL" />
|
|
<compilerflag value="-D__IPHONEOS__" if="ios" />
|
|
|
|
<file name="src/backend/sdl/SDLApplication.cpp" />
|
|
<file name="src/backend/sdl/SDLWindow.cpp" />
|
|
<file name="src/backend/sdl/SDLRenderer.cpp" />
|
|
<file name="src/backend/sdl/SDLGamepad.cpp" />
|
|
<file name="src/backend/sdl/SDLMouse.cpp" />
|
|
<file name="src/backend/sdl/SDLSystem.cpp" />
|
|
<file name="src/backend/sdl/SDLJNI.cpp" />
|
|
|
|
</section>
|
|
|
|
<section if="LIME_ZLIB">
|
|
|
|
<compilerflag value="-DSTATIC_LINK" if="emscripten" />
|
|
|
|
<file name="${HXCPP}/project/libs/zlib/ZLib.cpp" if="emscripten || ios" />
|
|
|
|
</section>
|
|
|
|
<file name="src/app/UpdateEvent.cpp" />
|
|
<file name="src/audio/format/WAV.cpp" />
|
|
<file name="src/audio/AudioBuffer.cpp" />
|
|
<file name="src/graphics/utils/ImageDataUtil.cpp" />
|
|
<file name="src/graphics/Image.cpp" />
|
|
<file name="src/graphics/ImageBuffer.cpp" />
|
|
<file name="src/graphics/RenderEvent.cpp" />
|
|
<file name="src/math/ColorMatrix.cpp" />
|
|
<file name="src/math/Rectangle.cpp" />
|
|
<file name="src/math/Vector2.cpp" />
|
|
<file name="src/ui/GamepadEvent.cpp" />
|
|
<file name="src/ui/KeyEvent.cpp" />
|
|
<file name="src/ui/MouseEvent.cpp" />
|
|
<file name="src/ui/TouchEvent.cpp" />
|
|
<file name="src/ui/WindowEvent.cpp" />
|
|
<file name="src/utils/ByteArray.cpp" />
|
|
|
|
</files>
|
|
|
|
<include name="lib/curl/files.xml" />
|
|
<include name="lib/freetype/files.xml" />
|
|
<include name="lib/harfbuzz/files.xml" />
|
|
<include name="lib/jpeg/files.xml" />
|
|
<include name="lib/neko/files.xml" />
|
|
<include name="lib/ogg/files.xml" />
|
|
<include name="lib/openal/files.xml" />
|
|
<include name="lib/openal-android/files.xml" if="android" />
|
|
<include name="lib/png/files.xml" />
|
|
<include name="lib/sdl/files.xml" />
|
|
<include name="lib/vorbis/files.xml" />
|
|
<include name="lib/zlib/files.xml" />
|
|
|
|
<set name="DEBUGEXTRA" value="-debug" if="fulldebug" />
|
|
|
|
<target id="lime" output="${LIBPREFIX}lime${DEBUGEXTRA}${LIBEXTRA}" tool="linker" toolid="${STD_MODULE_LINK}">
|
|
|
|
<outdir name="${OUTPUT_DIR}/${BINDIR}" />
|
|
|
|
<files id="lime" />
|
|
|
|
<files id="native-toolkit-curl" if="LIME_CURL" />
|
|
<files id="native-toolkit-jpeg" if="LIME_JPEG" />
|
|
<files id="native-toolkit-freetype" if="LIME_FREETYPE" />
|
|
<files id="native-toolkit-harfbuzz" if="LIME_HARFBUZZ" />
|
|
<files id="native-toolkit-neko" if="LIME_NEKO" />
|
|
<files id="native-toolkit-ogg" if="LIME_OGG" />
|
|
<files id="native-toolkit-openal" if="LIME_OPENAL" unless="mac || iphone || android || emscripten" />
|
|
<files id="native-toolkit-openal-android" if="LIME_OPENAL android" />
|
|
<files id="native-toolkit-png" if="LIME_PNG" />
|
|
<files id="native-toolkit-sdl" if="LIME_SDL" unless="emscripten" />
|
|
<files id="native-toolkit-vorbis" if="LIME_VORBIS" />
|
|
<files id="native-toolkit-zlib" if="LIME_ZLIB" />
|
|
|
|
<section unless="static_link">
|
|
|
|
<ext value=".so" />
|
|
<ext value=".ndll" if="windows || mac || linux" />
|
|
|
|
<section if="windows">
|
|
|
|
<lib name="gdi32.lib" />
|
|
<lib name="opengl32.lib" />
|
|
<lib name="user32.lib" />
|
|
<lib name="kernel32.lib" />
|
|
<lib name="advapi32.lib" />
|
|
<lib name="winmm.lib" />
|
|
<lib name="imm32.lib" />
|
|
<lib name="ole32.lib" />
|
|
<lib name="oleaut32.lib" />
|
|
<lib name="version.lib" />
|
|
<lib name="ws2_32.lib" />
|
|
<lib name="wldap32.lib" />
|
|
<lib name="shell32.lib" />
|
|
<lib name="comdlg32.lib" />
|
|
|
|
</section>
|
|
|
|
<section if="linux">
|
|
|
|
<lib name="${HXCPP}/lib/${BINDIR}/liblinuxcompat.a" />
|
|
<lib name="-lpthread" />
|
|
<lib name="-lrt" />
|
|
|
|
<lib name="-lgc" if="LIME_NEKO" />
|
|
<lib name="-lm" if="LIME_NEKO" />
|
|
|
|
</section>
|
|
|
|
<section if="mac">
|
|
|
|
<vflag name="-l" value="iconv"/>
|
|
<vflag name="-framework" value="IOKit" />
|
|
<vflag name="-framework" value="Foundation" />
|
|
<vflag name="-framework" value="CoreAudio" />
|
|
<vflag name="-framework" value="CoreVideo" />
|
|
<vflag name="-framework" value="Cocoa" />
|
|
<vflag name="-framework" value="OpenGL" />
|
|
<vflag name="-framework" value="AudioToolbox" />
|
|
<vflag name="-framework" value="AudioUnit" />
|
|
<vflag name="-framework" value="ForceFeedback" />
|
|
<vflag name="-framework" value="Carbon" />
|
|
<vflag name="-framework" value="AppKit" />
|
|
<vflag name="-framework" value="OpenAL"/>
|
|
|
|
<lib name="/opt/local/lib/libgc.a" if="LIME_NEKO" />
|
|
<lib name="-lm" if="LIME_NEKO" />
|
|
|
|
</section>
|
|
|
|
<section if="android">
|
|
|
|
<lib name="-L../ndll/Android" />
|
|
<!-- <lib name="-Wl,--undefined=Java_org_libsdl_app_SDLActivity_nativeInit" if="LIME_SDL"/> -->
|
|
<lib name="-ldl" />
|
|
<lib name="-llog" />
|
|
<lib name="-landroid" />
|
|
<lib name="-lEGL" />
|
|
<lib name="-lGLESv2" />
|
|
<lib name="-lGLESv1_CM" />
|
|
<lib name="-lOpenSLES" />
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
</target>
|
|
|
|
<include name="../legacy/project/Build.xml" if="lime-legacy" />
|
|
|
|
<target id="default">
|
|
|
|
<target id="lime" unless="lime-legacy" />
|
|
<target id="lime-legacy" if="lime-legacy" />
|
|
|
|
</target>
|
|
|
|
</xml>
|