|
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 |
|
|
30 | 31 | <set name="LIME_OPENAL" value="1" if="LIME_OPENALSOFT" /> |
31 | 32 | <set name="LIME_OPENAL" value="1" if="LIME_MOJOAL" /> |
32 | 33 | <set name="LIME_OPENGL" value="1" /> |
| 34 | + <set name="LIME_GLAD" value="1" if="LIME_OPENGL" unless="ios || tvos" /> |
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" /> |
58 | | - |
59 | 53 | <files id="lime"> |
60 | 54 |
|
61 | 55 | <compilerflag value="-Iinclude" /> |
|
200 | 194 |
|
201 | 195 | <section if="LIME_OPENGL"> |
202 | 196 |
|
| 197 | + <section if="LIME_GLAD"> |
| 198 | + |
| 199 | + <compilerflag value="-I${NATIVE_TOOLKIT_PATH}/glad/include/" /> |
| 200 | + <compilerflag value="-DLIME_GLAD" /> |
| 201 | + |
| 202 | + </section> |
| 203 | + |
| 204 | + <compilerflag value="-DLIME_OPENGL_GL" if="windows || mac || linux" /> |
| 205 | + <compilerflag value="-DLIME_OPENGL_GLES2" if="android || rpi || emscripten || tizen || ios || tvos" /> |
203 | 206 | <compilerflag value="-DLIME_OPENGL" /> |
204 | | - <compilerflag value="-I${DEVELOPER_DIR}/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS${TVOS_VER}.sdk/" if="tvos" /> |
205 | 207 |
|
206 | 208 | <file name="src/graphics/opengl/OpenGLBindings.cpp" /> |
207 | 209 |
|
|
257 | 259 | </section> |
258 | 260 |
|
259 | 261 | <compilerflag value="-DLIME_SDL" /> |
260 | | - <compilerflag value="-DNATIVE_TOOLKIT_SDL_ANGLE" if="NATIVE_TOOLKIT_SDL_ANGLE" /> |
261 | 262 | <compilerflag value="-D__IPHONEOS__" if="ios || tvos" /> |
262 | 263 | <compilerflag value="-D__APPLETVOS__" if="tvos" /> |
263 | 264 | <compilerflag value="-DAPPLETV" if="tvos" /> |
|
273 | 274 |
|
274 | 275 | </section> |
275 | 276 |
|
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 | 277 | <section if="LIME_VORBIS"> |
286 | 278 |
|
287 | 279 | <compilerflag value="-I${NATIVE_TOOLKIT_PATH}/ogg/include/" /> |
|
326 | 318 | <file name="src/system/System.mm" if="ios" /> |
327 | 319 | <file name="src/system/ValuePointer.cpp" /> |
328 | 320 | <file name="src/ui/DropEvent.cpp" /> |
| 321 | + <file name="src/ui/FileDialog.cpp" /> |
329 | 322 | <file name="src/ui/GamepadEvent.cpp" /> |
330 | 323 | <file name="src/ui/Haptic.mm" if="ios" /> |
331 | 324 | <file name="src/ui/JoystickEvent.cpp" /> |
|
355 | 348 | <include name="lib/faudio-files.xml" if="LIME_FAUDIO" /> |
356 | 349 | <include name="lib/freetype-files.xml" /> |
357 | 350 | <include name="lib/harfbuzz-files.xml" /> |
| 351 | + <include name="lib/glad-files.xml" /> |
358 | 352 | <include name="lib/jpeg-files.xml" /> |
359 | 353 | <include name="lib/lzma-files.xml" /> |
360 | 354 | <include name="lib/mbedtls-files.xml" /> |
|
365 | 359 | <include name="lib/pixman-files.xml" /> |
366 | 360 | <include name="lib/png-files.xml" /> |
367 | 361 | <include name="lib/sdl-files.xml" /> |
368 | | - <include name="lib/tinyfiledialogs-files.xml" /> |
369 | 362 | <include name="lib/vorbis-files.xml" /> |
370 | 363 | <include name="lib/vpx-files.xml" /> |
371 | 364 | <include name="lib/webm-files.xml" /> |
|
398 | 391 | <files id="native-toolkit-pixman" if="LIME_PIXMAN" /> |
399 | 392 | <files id="native-toolkit-png" if="LIME_PNG" /> |
400 | 393 | <files id="native-toolkit-sdl" if="LIME_SDL" unless="emscripten" /> |
401 | | - <files id="native-toolkit-tinyfiledialogs" if="LIME_TINYFILEDIALOGS" /> |
| 394 | + <files id="native-toolkit-glad" if="LIME_GLAD" /> |
402 | 395 | <files id="native-toolkit-vorbis" if="LIME_VORBIS" /> |
403 | 396 | <files id="native-toolkit-vpx" if="LIME_VPX" /> |
404 | 397 | <files id="native-toolkit-webm" if="LIME_WEBM" /> |
|
471 | 464 | <vflag name="-rpath" value="/opt/homebrew/lib" if="HXCPP_ARM64"/> |
472 | 465 |
|
473 | 466 | <vflag name="-l" value="iconv" /> |
474 | | - <vflag name="-framework" value="IOKit" /> |
475 | | - <vflag name="-framework" value="Foundation" /> |
476 | 467 | <vflag name="-framework" value="AppKit" /> |
477 | 468 | <vflag name="-framework" value="AudioToolbox" /> |
478 | 469 | <vflag name="-framework" value="AudioUnit" /> |
| 470 | + <vflag name="-framework" value="AVFoundation" /> |
479 | 471 | <vflag name="-framework" value="Carbon" /> |
480 | 472 | <vflag name="-framework" value="Cocoa" /> |
481 | 473 | <vflag name="-framework" value="CoreAudio" /> |
| 474 | + <vflag name="-framework" value="CoreBluetooth" /> |
| 475 | + <vflag name="-framework" value="CoreHaptics" /> |
| 476 | + <vflag name="-framework" value="CoreMedia" /> |
482 | 477 | <vflag name="-framework" value="CoreVideo" /> |
483 | 478 | <vflag name="-framework" value="ForceFeedback" /> |
484 | | - <vflag name="-framework" value="OpenAL" /> |
485 | 479 | <vflag name="-framework" value="OpenGL" /> |
| 480 | + <vflag name="-framework" value="Foundation" /> |
| 481 | + <vflag name="-framework" value="GameController" /> |
| 482 | + <vflag name="-framework" value="IOKit" /> |
486 | 483 | <vflag name="-framework" value="SystemConfiguration" /> |
| 484 | + <vflag name="-framework" value="UniformTypeIdentifiers" /> |
487 | 485 |
|
488 | 486 | <lib name="/opt/local/lib/libgc.a" if="LIME_NEKO" /> |
489 | 487 | <lib name="-lm" if="LIME_NEKO" /> |
|
503 | 501 | <lib name="-lm" /> |
504 | 502 | <lib name="-lEGL" /> |
505 | 503 | <lib name="-lGLESv2" /> |
506 | | - <lib name="-lGLESv1_CM" /> |
507 | 504 | <lib name="-lOpenSLES" /> |
508 | 505 |
|
509 | 506 | </section> |
|
520 | 517 |
|
521 | 518 | <section if="tvos"> |
522 | 519 |
|
523 | | - <vflag name="-framework" value="UIKit" /> |
524 | | - <vflag name="-framework" value="Foundation" /> |
525 | 520 | <vflag name="-framework" value="AudioToolbox" /> |
526 | 521 | <vflag name="-framework" value="AudioUnit" /> |
527 | 522 | <vflag name="-framework" value="CoreAudio" /> |
| 523 | + <vflag name="-framework" value="CoreBluetooth" /> |
528 | 524 | <vflag name="-framework" value="CoreVideo" /> |
| 525 | + <vflag name="-framework" value="Foundation" /> |
529 | 526 | <vflag name="-framework" value="GameController" /> |
530 | | - <vflag name="-framework" value="OpenAL" /> |
531 | 527 | <vflag name="-framework" value="OpenGLES" /> |
532 | | - <!-- <vflag name="-framework" value="CoreBluetooth" /> --> |
| 528 | + <vflag name="-framework" value="UIKit" /> |
533 | 529 |
|
534 | 530 | <lib name="-ldl" /> |
535 | | - <lib name="-lEGL" /> |
536 | | - <lib name="-lGLESv3" /> |
537 | 531 |
|
538 | 532 | </section> |
539 | 533 |
|
540 | 534 | <section if="ios"> |
541 | 535 |
|
542 | | - <vflag name="-framework" value="UIKit" /> |
543 | | - <vflag name="-framework" value="Foundation" /> |
544 | 536 | <vflag name="-framework" value="AudioToolbox" /> |
545 | 537 | <vflag name="-framework" value="AudioUnit" /> |
546 | 538 | <vflag name="-framework" value="CoreAudio" /> |
| 539 | + <vflag name="-framework" value="CoreBluetooth" /> |
547 | 540 | <vflag name="-framework" value="CoreMotion" /> |
548 | 541 | <vflag name="-framework" value="CoreText" /> |
549 | 542 | <vflag name="-framework" value="CoreVideo" /> |
550 | | - <vflag name="-framework" value="OpenAL" /> |
| 543 | + <vflag name="-framework" value="Foundation" /> |
551 | 544 | <vflag name="-framework" value="OpenGLES" /> |
552 | | - <!-- <vflag name="-framework" value="CoreBluetooth" /> --> |
| 545 | + <vflag name="-framework" value="UIKit" /> |
553 | 546 |
|
554 | 547 | <lib name="-ldl" /> |
555 | | - <lib name="-lEGL" /> |
556 | | - <lib name="-lGLESv3" /> |
557 | 548 |
|
558 | 549 | </section> |
559 | 550 |
|
|
0 commit comments