|
1 | 1 | <xml> |
2 | 2 | <set name="HXCPP_CPP20" value="1" /> |
| 3 | + <set name="OBJC_ARC" value="1" if="apple" /> |
3 | 4 |
|
4 | 5 | <include name="${HXCPP}/build-tool/BuildCommon.xml" /> |
5 | 6 |
|
|
23 | 24 | <set name="LIME_MBEDTLS" value="1" unless="emscripten || winrt" /> |
24 | 25 | <!-- <set name="LIME_NEKO" value="1" if="linux" /> --> |
25 | 26 | <set name="LIME_OGG" value="1" /> |
| 27 | + <set name="LIME_GLAD" value="1" /> |
26 | 28 | <set name="LIME_OPENALSOFT" value="1" if="windows || linux || mac || android || iphone" unless="tvos" /> |
27 | 29 | <set name="LIME_OPENAL" value="1" if="webassembly || tvos" /> |
28 | 30 | <set name="LIME_MOJOAL" value="1" if="switch || static_link || winrt || mojoal" unless="LIME_OPENAL || iphone LIME_OPENALSOFT" /> |
|
33 | 35 | <set name="LIME_PIXMAN" value="1" /> |
34 | 36 | <set name="LIME_PNG" value="1" /> |
35 | 37 | <set name="LIME_SDL" value="1" /> |
36 | | - <!-- <set name="LIME_SDL_ANGLE" value="1" if="windows" unless="static_link" /> --> |
37 | | - <set name="LIME_SDL_ANGLE" value="1" if="windows LIME_SDL_ANGLE" unless="static_link" /> |
38 | | - <set name="LIME_SDL_ANGLE" value="1" if="windows angle" unless="static_link" /> |
39 | | - <set name="LIME_SDL_ANGLE" value="1" if="winrt" /> |
40 | | - <set name="LIME_TINYFILEDIALOGS" value="1" if="windows || mac || linux" unless="winrt || emscripten" /> |
41 | 38 | <set name="LIME_VORBIS" value="1" /> |
42 | 39 | <!-- <set name="LIME_VPX" value="1" /> |
43 | 40 | <set name="LIME_WEBM" value="1" /> --> |
|
53 | 50 | <set name="NATIVE_TOOLKIT_HAVE_PNG" value="1" if="LIME_PNG" /> |
54 | 51 | <set name="NATIVE_TOOLKIT_HAVE_SDL" value="1" if="LIME_SDL" /> |
55 | 52 |
|
56 | | - <set name="NATIVE_TOOLKIT_SDL_STATIC" value="1" /> |
57 | | - <set name="NATIVE_TOOLKIT_SDL_ANGLE" value="1" if="LIME_SDL_ANGLE" /> |
| 53 | + <set name="NATIVE_TOOLKIT_HAVE_GLAD" value="1" if="LIME_GLAD" /> |
| 54 | + |
| 55 | + <set name="NATIVE_TOOLKIT_GLAD_GL" value="1" if="windows || mac || linux" /> |
| 56 | + <set name="NATIVE_TOOLKIT_GLAD_GLES2" value="1" if="android || rpi || emscripten || tizen || ios || tvos" /> |
58 | 57 |
|
59 | 58 | <files id="lime"> |
60 | 59 |
|
|
184 | 183 |
|
185 | 184 | </section> |
186 | 185 |
|
| 186 | + <section if="LIME_GLAD"> |
| 187 | + <compilerflag value="-I${NATIVE_TOOLKIT_PATH}/glad/include/" /> |
| 188 | + |
| 189 | + <compilerflag value="-DLIME_GL" if="NATIVE_TOOLKIT_GLAD_GL" /> |
| 190 | + <compilerflag value="-DLIME_GLES2" if="NATIVE_TOOLKIT_GLAD_GLES2" /> |
| 191 | + </section> |
| 192 | + |
187 | 193 | <section if="LIME_OPENAL"> |
188 | 194 |
|
189 | 195 | <compilerflag value="-I${NATIVE_TOOLKIT_PATH}/openal/include/" unless="LIME_MOJOAL || emscripten" /> |
|
257 | 263 | </section> |
258 | 264 |
|
259 | 265 | <compilerflag value="-DLIME_SDL" /> |
260 | | - <compilerflag value="-DNATIVE_TOOLKIT_SDL_ANGLE" if="NATIVE_TOOLKIT_SDL_ANGLE" /> |
261 | 266 | <compilerflag value="-D__IPHONEOS__" if="ios || tvos" /> |
262 | 267 | <compilerflag value="-D__APPLETVOS__" if="tvos" /> |
263 | 268 | <compilerflag value="-DAPPLETV" if="tvos" /> |
|
273 | 278 |
|
274 | 279 | </section> |
275 | 280 |
|
276 | | - <section if="LIME_TINYFILEDIALOGS"> |
277 | | - |
278 | | - <compilerflag value="-I${NATIVE_TOOLKIT_PATH}/tinyfiledialogs/" /> |
279 | | - <compilerflag value="-DLIME_TINYFILEDIALOGS" /> |
280 | | - |
281 | | - <file name="src/ui/FileDialog.cpp" /> |
282 | | - |
283 | | - </section> |
284 | | - |
285 | 281 | <section if="LIME_VORBIS"> |
286 | 282 |
|
287 | 283 | <compilerflag value="-I${NATIVE_TOOLKIT_PATH}/ogg/include/" /> |
|
326 | 322 | <file name="src/system/System.mm" if="ios" /> |
327 | 323 | <file name="src/system/ValuePointer.cpp" /> |
328 | 324 | <file name="src/ui/DropEvent.cpp" /> |
| 325 | + <file name="src/ui/FileDialog.cpp" /> |
329 | 326 | <file name="src/ui/GamepadEvent.cpp" /> |
330 | 327 | <file name="src/ui/Haptic.mm" if="ios" /> |
331 | 328 | <file name="src/ui/JoystickEvent.cpp" /> |
|
355 | 352 | <include name="lib/faudio-files.xml" if="LIME_FAUDIO" /> |
356 | 353 | <include name="lib/freetype-files.xml" /> |
357 | 354 | <include name="lib/harfbuzz-files.xml" /> |
| 355 | + <include name="lib/glad-files.xml" /> |
358 | 356 | <include name="lib/jpeg-files.xml" /> |
359 | 357 | <include name="lib/lzma-files.xml" /> |
360 | 358 | <include name="lib/mbedtls-files.xml" /> |
|
365 | 363 | <include name="lib/pixman-files.xml" /> |
366 | 364 | <include name="lib/png-files.xml" /> |
367 | 365 | <include name="lib/sdl-files.xml" /> |
368 | | - <include name="lib/tinyfiledialogs-files.xml" /> |
369 | 366 | <include name="lib/vorbis-files.xml" /> |
370 | 367 | <include name="lib/vpx-files.xml" /> |
371 | 368 | <include name="lib/webm-files.xml" /> |
|
398 | 395 | <files id="native-toolkit-pixman" if="LIME_PIXMAN" /> |
399 | 396 | <files id="native-toolkit-png" if="LIME_PNG" /> |
400 | 397 | <files id="native-toolkit-sdl" if="LIME_SDL" unless="emscripten" /> |
401 | | - <files id="native-toolkit-tinyfiledialogs" if="LIME_TINYFILEDIALOGS" /> |
| 398 | + <files id="native-toolkit-glad" if="LIME_GLAD" /> |
402 | 399 | <files id="native-toolkit-vorbis" if="LIME_VORBIS" /> |
403 | 400 | <files id="native-toolkit-vpx" if="LIME_VPX" /> |
404 | 401 | <files id="native-toolkit-webm" if="LIME_WEBM" /> |
|
471 | 468 | <vflag name="-rpath" value="/opt/homebrew/lib" if="HXCPP_ARM64"/> |
472 | 469 |
|
473 | 470 | <vflag name="-l" value="iconv" /> |
474 | | - <vflag name="-framework" value="IOKit" /> |
475 | | - <vflag name="-framework" value="Foundation" /> |
476 | 471 | <vflag name="-framework" value="AppKit" /> |
477 | 472 | <vflag name="-framework" value="AudioToolbox" /> |
478 | 473 | <vflag name="-framework" value="AudioUnit" /> |
| 474 | + <vflag name="-framework" value="AVFoundation" /> |
479 | 475 | <vflag name="-framework" value="Carbon" /> |
480 | 476 | <vflag name="-framework" value="Cocoa" /> |
481 | 477 | <vflag name="-framework" value="CoreAudio" /> |
| 478 | + <vflag name="-framework" value="CoreBluetooth" /> |
| 479 | + <vflag name="-framework" value="CoreHaptics" /> |
| 480 | + <vflag name="-framework" value="CoreMedia" /> |
482 | 481 | <vflag name="-framework" value="CoreVideo" /> |
483 | 482 | <vflag name="-framework" value="ForceFeedback" /> |
484 | | - <vflag name="-framework" value="OpenAL" /> |
485 | 483 | <vflag name="-framework" value="OpenGL" /> |
| 484 | + <vflag name="-framework" value="Foundation" /> |
| 485 | + <vflag name="-framework" value="GameController" /> |
| 486 | + <vflag name="-framework" value="IOKit" /> |
486 | 487 | <vflag name="-framework" value="SystemConfiguration" /> |
| 488 | + <vflag name="-framework" value="UniformTypeIdentifiers" /> |
487 | 489 |
|
488 | 490 | <lib name="/opt/local/lib/libgc.a" if="LIME_NEKO" /> |
489 | 491 | <lib name="-lm" if="LIME_NEKO" /> |
|
503 | 505 | <lib name="-lm" /> |
504 | 506 | <lib name="-lEGL" /> |
505 | 507 | <lib name="-lGLESv2" /> |
506 | | - <lib name="-lGLESv1_CM" /> |
507 | 508 | <lib name="-lOpenSLES" /> |
508 | 509 |
|
509 | 510 | </section> |
|
520 | 521 |
|
521 | 522 | <section if="tvos"> |
522 | 523 |
|
523 | | - <vflag name="-framework" value="UIKit" /> |
524 | | - <vflag name="-framework" value="Foundation" /> |
525 | 524 | <vflag name="-framework" value="AudioToolbox" /> |
526 | 525 | <vflag name="-framework" value="AudioUnit" /> |
527 | 526 | <vflag name="-framework" value="CoreAudio" /> |
| 527 | + <vflag name="-framework" value="CoreBluetooth" /> |
528 | 528 | <vflag name="-framework" value="CoreVideo" /> |
| 529 | + <vflag name="-framework" value="Foundation" /> |
529 | 530 | <vflag name="-framework" value="GameController" /> |
530 | | - <vflag name="-framework" value="OpenAL" /> |
531 | 531 | <vflag name="-framework" value="OpenGLES" /> |
532 | | - <!-- <vflag name="-framework" value="CoreBluetooth" /> --> |
| 532 | + <vflag name="-framework" value="UIKit" /> |
533 | 533 |
|
534 | 534 | <lib name="-ldl" /> |
535 | | - <lib name="-lEGL" /> |
536 | | - <lib name="-lGLESv3" /> |
537 | 535 |
|
538 | 536 | </section> |
539 | 537 |
|
540 | 538 | <section if="ios"> |
541 | 539 |
|
542 | | - <vflag name="-framework" value="UIKit" /> |
543 | | - <vflag name="-framework" value="Foundation" /> |
544 | 540 | <vflag name="-framework" value="AudioToolbox" /> |
545 | 541 | <vflag name="-framework" value="AudioUnit" /> |
546 | 542 | <vflag name="-framework" value="CoreAudio" /> |
| 543 | + <vflag name="-framework" value="CoreBluetooth" /> |
547 | 544 | <vflag name="-framework" value="CoreMotion" /> |
548 | 545 | <vflag name="-framework" value="CoreText" /> |
549 | 546 | <vflag name="-framework" value="CoreVideo" /> |
550 | | - <vflag name="-framework" value="OpenAL" /> |
| 547 | + <vflag name="-framework" value="Foundation" /> |
551 | 548 | <vflag name="-framework" value="OpenGLES" /> |
552 | | - <!-- <vflag name="-framework" value="CoreBluetooth" /> --> |
| 549 | + <vflag name="-framework" value="UIKit" /> |
553 | 550 |
|
554 | 551 | <lib name="-ldl" /> |
555 | | - <lib name="-lEGL" /> |
556 | | - <lib name="-lGLESv3" /> |
557 | 552 |
|
558 | 553 | </section> |
559 | 554 |
|
|
0 commit comments