-
Notifications
You must be signed in to change notification settings - Fork 0
/
LocalSetup.pp
671 lines (542 loc) · 16.6 KB
/
LocalSetup.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
//
// LocalSetup.pp
//
// This file contains further instructions to set up the DTOOL package
// when using ppremake. In particular, it creates the dtool_config.h
// file based on the user's selected configure variables. This script
// need not execute when BUILD_TYPE is "autoconf"; in this case, the
// dtool_config.h file will automatically be correctly generated by
// configure.
//
#print
#print Configuring support for the following optional third-party packages:
#if $[HAVE_EIGEN]
#print + Eigen linear algebra library
#if $[LINMATH_ALIGN]
#print + (vectorization enabled in build)
#else
#print - (vectorization NOT enabled in build)
#endif
#else
#print - Did not find Eigen linear algebra library
#endif
#if $[HAVE_OPENSSL]
#print + OpenSSL
#else
#print - Did not find OpenSSL
#endif
#if $[HAVE_JPEG]
#print + libjpeg
#else
#print - Did not find libjpeg
#endif
#if $[HAVE_PNG]
#print + libpng
#else
#print - Did not find libpng
#endif
#if $[HAVE_TIFF]
#print + libtiff
#else
#print - Did not find libtiff
#endif
#if $[HAVE_FFTW]
#print + fftw
#else
#print - Did not find fftw
#endif
#if $[HAVE_SQUISH]
#print + squish
#else
#print - Did not find squish
#endif
#if $[HAVE_CG]
#print + Nvidia Cg High Level Shading Language
#else
#print - Did not find Nvidia Cg High Level Shading Language
#endif
#if $[HAVE_CGGL]
#print + Cg OpenGL API
#else
#print - Did not find Cg OpenGL API
#endif
#if $[HAVE_CGDX9]
#print + Cg DX9 API
#else
#print - Did not find Cg DX9 API
#endif
#if $[HAVE_VRPN]
#print + VRPN
#else
#print - Did not find VRPN
#endif
#if $[HAVE_ZLIB]
#print + zlib
#else
#print - Did not find zlib
#endif
#if $[HAVE_RAD_MSS]
#print + Miles Sound System
#else
#print - Did not find Miles Sound System
#endif
#if $[HAVE_FMODEX]
#print + FMOD Ex sound library
#else
#print - Did not find FMOD Ex sound library
#endif
#if $[HAVE_OPENAL]
#print + OpenAL sound library
#else
#print - Did not find OpenAL sound library
#endif
#if $[HAVE_GTK]
#print + gtk+-2
#else
#print - Did not find gtk+-2
#endif
#if $[HAVE_FREETYPE]
#print + Freetype
#else
#print - Did not find Freetype
#endif
#if $[HAVE_GL]
#print + OpenGL
#else
#print - Did not find OpenGL
#endif
#if $[HAVE_GLES]
#print + OpenGL ES 1
#else
#print - Did not find OpenGL ES 1
#endif
#if $[HAVE_GLES2]
#print + OpenGL ES 2
#else
#print - Did not find OpenGL ES 2
#endif
#if $[HAVE_DX9]
#print + DirectX9
#else
#print - Did not find DirectX9
#endif
#if $[HAVE_TINYDISPLAY]
#print + Tinydisplay
#else
#print - Not building Tinydisplay
#endif
#if $[HAVE_X11]
#print + X11
#else
#print - Did not find X11
#endif
#if $[HAVE_OPENCV]
#print + OpenCV
#else
#print - Did not find OpenCV
#endif
#if $[HAVE_FFMPEG]
#print + FFMPEG
#else
#print - Did not find FFMPEG
#endif
#if $[HAVE_ODE]
#print + ODE
#else
#print - Did not find ODE
#endif
#if $[HAVE_MAYA]
#print + OpenMaya
#else
#print - Did not find OpenMaya
#endif
#if $[HAVE_FCOLLADA]
#print + FCollada
#else
#print - Did not find FCollada
#endif
#if $[HAVE_ASSIMP]
#print + Assimp
#else
#print - Did not find Assimp
#endif
#if $[HAVE_ARTOOLKIT]
#print + ARToolKit
#else
#print - Did not find ARToolKit
#endif
#if $[HAVE_ROCKET]
#if $[HAVE_ROCKET_PYTHON]
#print + libRocket with Python bindings
#else
#print + libRocket without Python bindings
#endif
#else
#print - Did not find libRocket
#endif
#if $[HAVE_BULLET]
#print + Bullet Physics
#else
#print - Did not find Bullet Physics
#endif
#if $[HAVE_VORBIS]
#print + Vorbis (Ogg Vorbis Decoder)
#else
#print - Did not find Vorbis (Ogg Vorbis Decoder)
#endif
#if $[HAVE_OPUS]
#print + Opus
#else
#print - Did not find Opus
#endif
#if $[HAVE_HARFBUZZ]
#print + HarfBuzz
#else
#print - Did not find HarfBuzz
#endif
#if $[HAVE_OPENEXR]
#print + OpenEXR
#else
#print - Did not find OpenEXR
#endif
#print
#if $[and $[HAVE_INTERROGATE],$[HAVE_PYTHON]]
#print Compilation will generate Python interfaces.
#else
#print Configuring Panda WITHOUT Python interfaces.
#endif
#if $[HAVE_THREADS]
#if $[SIMPLE_THREADS]
#print Compilation will include simulated threading support.
#else
#if $[DO_PIPELINING]
#print Compilation will include full, pipelined threading support.
#else
#print Compilation will include nonpipelined threading support.
#endif
#endif
#else
#print Configuring Panda without threading support.
#endif
#if $[OSX_PLATFORM]
#if $[UNIVERSAL_BINARIES]
#print Compilation will create universal binaries.
#else
#print Compilation will not create universal binaries.
#endif
#endif
#print
#print See dtool_config.h for more details about the specified configuration.
#print
// We don't include the ppremake version in the first comment line of
// the output to dtool_config.h, below, to minimize unnecessary
// complete rebuilds due to an updated ppremake version.
#output dtool_config.h notouch
#format straight
/* dtool_config.h. Generated automatically by $[PPREMAKE] from $[SOURCEFILE]. */
/* Debug / non-debug symbols. OPTIMIZE = $[OPTIMIZE] */
#if $[<= $[OPTIMIZE],2]
#define _DEBUG 1
#elif $[= $[OPTIMIZE],4]
#define NDEBUG 1
#endif
$[cdefine _DEBUG]
$[cdefine NDEBUG]
/* Define if we have Eigen available. */
$[cdefine HAVE_EIGEN]
$[cdefine LINMATH_ALIGN]
/* Define if we have Python installed. */
$[cdefine HAVE_PYTHON]
$[cdefine USE_DEBUG_PYTHON]
/* Define if we have Python as a framework (Mac OS X). */
$[cdefine PYTHON_FRAMEWORK]
/* Define if we have OpenAL installed as a framework. */
$[cdefine HAVE_OPENAL_FRAMEWORK]
/* Define if we have RAD game tools, Miles Sound System installed. */
$[cdefine HAVE_RAD_MSS]
/* Define if we have Freetype 2.0 or better available. */
$[cdefine HAVE_FREETYPE]
/* Define if we want to compile in a default font. */
$[cdefine COMPILE_IN_DEFAULT_FONT]
/* Define to use doubles for most numbers, intead of single-precision floats. */
$[cdefine STDFLOAT_DOUBLE]
/* Define if we have Maya available. */
$[cdefine HAVE_MAYA]
$[cdefine MAYA_PRE_5_0]
/* Define if we have libRocket available and built with the Rocket Debugger. */
$[cdefine HAVE_ROCKET_DEBUGGER]
/* Define if we have built libRocket available and built with Python support. */
$[cdefine HAVE_ROCKET_PYTHON]
/* Define if we have FCollada available. */
$[cdefine HAVE_FCOLLADA]
/* Define if we have ARToolKit available. */
$[cdefine HAVE_ARTOOLKIT]
/* Define if we have libvorbisfile available. */
$[cdefine HAVE_VORBIS]
/* Define if we have libopus available. */
$[cdefine HAVE_OPUS]
/* Define if we have OpenSSL installed. */
$[cdefine HAVE_OPENSSL]
$[cdefine REPORT_OPENSSL_ERRORS]
/* Define if we have libjpeg installed. */
$[cdefine HAVE_JPEG]
$[cdefine PHAVE_JPEGINT_H]
/* Define to build video-for-linux. */
$[cdefine HAVE_VIDEO4LINUX]
/* Define if we have libpng installed. */
$[cdefine HAVE_PNG]
/* Define if we have libtiff installed. */
$[cdefine HAVE_TIFF]
/* Define if we have OpenEXR installed. */
$[cdefine HAVE_OPENEXR]
/* Define if we have HarfBuzz installed. */
$[cdefine HAVE_HARFBUZZ]
/* Define if we want to build these other image file formats. */
$[cdefine HAVE_SGI_RGB]
$[cdefine HAVE_TGA]
$[cdefine HAVE_IMG]
$[cdefine HAVE_SOFTIMAGE_PIC]
$[cdefine HAVE_BMP]
$[cdefine HAVE_PNM]
/* Define if we have libfftw installed. */
$[cdefine HAVE_FFTW]
/* Define if we have libsquish installed. */
$[cdefine HAVE_SQUISH]
/* Define if we have CG installed. */
$[cdefine HAVE_CG]
/* Define if we have CGGL installed. */
$[cdefine HAVE_CGGL]
/* Define if we have CGDX9 installed. */
$[cdefine HAVE_CGDX9]
/* Define if we have zlib installed. */
$[cdefine HAVE_ZLIB]
/* Define the preconfigured minimum GL version number. */
#if HAVE_GL
# define MIN_GL_VERSION_MAJOR $[word 1,$[MIN_GL_VERSION]]
# define MIN_GL_VERSION_MINOR $[word 2,$[MIN_GL_VERSION]]
#endif
/* Define if we have OpenCV installed and want to build for OpenCV. */
$[cdefine HAVE_OPENCV]
$[cdefine OPENCV_VER_23]
/* Define if we have FFMPEG installed and want to build for FFMPEG. */
$[cdefine HAVE_FFMPEG]
$[cdefine HAVE_SWSCALE]
$[cdefine HAVE_SWRESAMPLE]
/* Define if we have GLX installed and want to build for GLX. */
$[cdefine HAVE_GLX]
/* Define if we have EGL installed and want to build for EGL. */
$[cdefine HAVE_EGL]
/* Define if we have Windows-GL installed and want to build for Wgl. */
$[cdefine HAVE_WGL]
/* Define if we have DirectX installed and want to build for DX. */
$[cdefine HAVE_DX9]
/* The choice of generic vs. the specific dxerr library largely
depends on which SDK you have installed. */
$[cdefine USE_GENERIC_DXERR_LIBRARY]
/* Define if we want to build tinydisplay. */
$[cdefine HAVE_TINYDISPLAY]
/* Define if we have the SDL library. */
$[cdefine HAVE_SDL]
/* Define if we have X11. */
$[cdefine HAVE_X11]
/* Define if we want to compile the threading code. */
$[cdefine HAVE_THREADS]
/* Define if we want to use fast, user-space simulated threads. */
$[cdefine SIMPLE_THREADS]
/* Define if SIMPLE_THREADS should be implemented with the OS-provided
threading layer (if available). */
$[cdefine OS_SIMPLE_THREADS]
/* Define to enable deadlock detection, mutex recursion checks, etc. */
$[cdefine DEBUG_THREADS]
/* Define to implement mutexes and condition variables via a user-space spinlock. */
$[cdefine MUTEX_SPINLOCK]
/* Define to enable the PandaFileStream implementation of pfstream etc. */
$[cdefine USE_PANDAFILESTREAM]
/* Define if we want to compile the net code. */
$[cdefine HAVE_NET]
/* Define if we want to compile the egg code. */
$[cdefine HAVE_EGG]
/* Define if we want to compile the audio code. */
$[cdefine HAVE_AUDIO]
/* Define if we have bison and flex available. */
$[cdefine HAVE_BISON]
/* Define if we want to use PStats. */
$[cdefine DO_PSTATS]
/* Define if we want to type-check downcasts. */
$[cdefine DO_DCAST]
/* Define if we want to provide collision system recording and
visualization tools. */
$[cdefine DO_COLLISION_RECORDING]
/* Define if we want to enable track-memory-usage. */
$[cdefine DO_MEMORY_USAGE]
/* Define if we want to enable min-lag and max-lag. */
$[cdefine SIMULATE_NETWORK_DELAY]
/* Define if we want to allow immediate mode OpenGL rendering. */
$[cdefine SUPPORT_IMMEDIATE_MODE]
/* Define if we want to support fixed-function OpenGL rendering. */
$[cdefine SUPPORT_FIXED_FUNCTION]
/* Define for either of the alternative malloc schemes. */
$[cdefine USE_MEMORY_DLMALLOC]
$[cdefine USE_MEMORY_PTMALLOC2]
/* Define if we want to compile in support for pipelining. */
$[cdefine DO_PIPELINING]
/* Define if we want to keep Notify debug messages around, or undefine
to compile them out. */
$[cdefine NOTIFY_DEBUG]
/* Define if we want to export template classes from the DLL. Only
makes sense to MSVC++. */
$[cdefine EXPORT_TEMPLATES]
/* The compiled-in character(s) to expect to separate different
components of a path list (e.g. $PRC_PATH). */
# define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
/* Many of the prc variables are exported by
dtool/src/prc/prc_parameters.h.pp, instead of here. Only those prc
variables that must be visible outside of the prc directory are
exported here. */
/* The filename that specifies the public keys to import into
config. */
# define PRC_PUBLIC_KEYS_FILENAME "$[unixfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
#if $[PRC_PUBLIC_KEYS_FILENAME]
# define PRC_PUBLIC_KEYS_INCLUDE "$[osfilename $[PRC_PUBLIC_KEYS_FILENAME]]"
#endif
/* Define if you want to save the descriptions for ConfigVariables. */
$[cdefine PRC_SAVE_DESCRIPTIONS]
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
$[cdefine WORDS_BIGENDIAN]
/* Define if the C++ compiler uses namespaces. */
$[cdefine HAVE_NAMESPACE]
/* Define if fstream::open() accepts a third parameter for umask. */
$[cdefine HAVE_OPEN_MASK]
/* Define if we have a lockf() function. */
$[cdefine PHAVE_LOCKF]
/* Define if some header file defines wchar_t. */
$[cdefine HAVE_WCHAR_T]
/* Define if the <string> header file defines wstring. */
$[cdefine HAVE_WSTRING]
/* Define if the C++ compiler supports the typename keyword. */
$[cdefine HAVE_TYPENAME]
/* Define if we can trust the compiler not to insert extra bytes in
structs between base structs and derived structs. */
$[cdefine SIMPLE_STRUCT_POINTERS]
/* Define if we have Dinkumware STL installed. */
$[cdefine HAVE_DINKUM]
/* Define if we have STL hash_map etc. available */
$[cdefine HAVE_STL_HASH]
/* Define if gettimeofday() takes only one parameter. */
$[cdefine GETTIMEOFDAY_ONE_PARAM]
/* Define if you have the getopt function. */
$[cdefine HAVE_GETOPT]
/* Define if you have the getopt_long_only function. */
$[cdefine HAVE_GETOPT_LONG_ONLY]
/* Define if getopt appears in getopt.h. */
$[cdefine PHAVE_GETOPT_H]
/* Define if you have ioctl(TIOCGWINSZ) to determine terminal width. */
$[cdefine IOCTL_TERMINAL_WIDTH]
/* Do the system headers define a "streamsize" typedef? */
$[cdefine HAVE_STREAMSIZE]
/* Do the system headers define key ios typedefs like ios::openmode
and ios::fmtflags? */
$[cdefine HAVE_IOS_TYPEDEFS]
/* Define if the C++ iostream library defines ios::binary. */
$[cdefine HAVE_IOS_BINARY]
/* Can we safely call getenv() at static init time? */
$[cdefine STATIC_INIT_GETENV]
/* Can we read the file /proc/self/[*] to determine our
environment variables at static init time? */
$[cdefine HAVE_PROC_SELF_EXE]
$[cdefine HAVE_PROC_SELF_MAPS]
$[cdefine HAVE_PROC_SELF_ENVIRON]
$[cdefine HAVE_PROC_SELF_CMDLINE]
$[cdefine HAVE_PROC_CURPROC_FILE]
$[cdefine HAVE_PROC_CURPROC_MAP]
$[cdefine HAVE_PROC_CURPROC_CMDLINE]
/* Do we have a global pair of argc/argv variables that we can read at
static init time? Should we prototype them? What are they called? */
$[cdefine HAVE_GLOBAL_ARGV]
$[cdefine PROTOTYPE_GLOBAL_ARGV]
$[cdefine GLOBAL_ARGV]
$[cdefine GLOBAL_ARGC]
/* Define if you have the <io.h> header file. */
$[cdefine PHAVE_IO_H]
/* Define if you have the <iostream> header file. */
$[cdefine PHAVE_IOSTREAM]
/* Define if you have the <malloc.h> header file. */
$[cdefine PHAVE_MALLOC_H]
/* Define if you have the <sys/malloc.h> header file. */
$[cdefine PHAVE_SYS_MALLOC_H]
/* Define if you have the <alloca.h> header file. */
$[cdefine PHAVE_ALLOCA_H]
/* Define if you have the <locale.h> header file. */
$[cdefine PHAVE_LOCALE_H]
/* Define if you have the <string.h> header file. */
$[cdefine PHAVE_STRING_H]
/* Define if you have the <stdlib.h> header file. */
$[cdefine PHAVE_STDLIB_H]
/* Define if you have the <limits.h> header file. */
$[cdefine PHAVE_LIMITS_H]
/* Define if you have the <minmax.h> header file. */
$[cdefine PHAVE_MINMAX_H]
/* Define if you have the <sstream> header file. */
$[cdefine PHAVE_SSTREAM]
/* Define if you have the <new> header file. */
$[cdefine PHAVE_NEW]
/* Define if you have the <sys/types.h> header file. */
$[cdefine PHAVE_SYS_TYPES_H]
/* Define if you have the <sys/time.h> header file. */
$[cdefine PHAVE_SYS_TIME_H]
/* Define if you have the <unistd.h> header file. */
$[cdefine PHAVE_UNISTD_H]
/* Define if you have the <utime.h> header file. */
$[cdefine PHAVE_UTIME_H]
/* Define if you have the <glob.h> header file. */
$[cdefine PHAVE_GLOB_H]
/* Define if you have the <dirent.h> header file. */
$[cdefine PHAVE_DIRENT_H]
/* Define if you have the <drfftw.h> header file. */
$[cdefine PHAVE_DRFFTW_H]
/* Do we have <sys/soundcard.h> (and presumably a Linux-style audio
interface)? */
$[cdefine PHAVE_SYS_SOUNDCARD_H]
/* Do we have <ucontext.h> (and therefore makecontext() /
swapcontext())? */
$[cdefine PHAVE_UCONTEXT_H]
/* Do we have <linux/input.h> ? This enables us to use raw mouse input. */
$[cdefine PHAVE_LINUX_INPUT_H]
/* Do we have <stdint.h>? */
$[cdefine PHAVE_STDINT_H]
/* Do we have RTTI (and <typeinfo>)? */
$[cdefine HAVE_RTTI]
/* Do we have Posix threads? */
$[cdefine HAVE_POSIX_THREADS]
/* Is the code being compiled with the Tau profiler's instrumentor? */
$[cdefine USE_TAU]
/* Define if needed to have 64-bit file i/o */
$[cdefine __USE_LARGEFILE64]
// To activate the DELETED_CHAIN macros.
$[cdefine USE_DELETED_CHAIN]
// To build the Windows TOUCHINPUT interfaces (requires Windows 7).
$[cdefine HAVE_WIN_TOUCHINPUT]
// If we are to build the native net interfaces.
$[cdefine WANT_NATIVE_NET]
/* Turn off warnings for using scanf and such */
#if $[or $[eq $[USE_COMPILER],MSVC9], $[eq $[USE_COMPILER],MSVC9x64]]
#print Will ignore CRT_SECURE warnings for MSVC9
$[cdefine _CRT_SECURE_NO_WARNINGS]
# pragma warning( disable : 4996 4275 4267 4099 4049 4013 4005 )
#endif
/* Static linkage instead of the normal dynamic linkage? */
$[cdefine LINK_ALL_STATIC]
/* Define to compile for Cocoa or Carbon on Mac OS X. */
$[cdefine HAVE_COCOA]
$[cdefine HAVE_CARBON]
/* Platform-identifying defines. */
$[cdefine IS_OSX]
$[cdefine IS_LINUX]
$[cdefine IS_FREEBSD]
$[cdefine BUILD_IPHONE]
$[cdefine UNIVERSAL_BINARIES]
#if $[DTOOL_PLATFORM]
# define DTOOL_PLATFORM "$[DTOOL_PLATFORM]"
#endif
#end dtool_config.h