~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/0008-look_for_droid_ttf_with_fontconfig.patch/source/creator/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        blender_include_dirs(${BINRELOC_INCLUDE_DIRS})
81
81
endif()
82
82
 
 
83
if(WITH_FREESTYLE)
 
84
        add_definitions(-DWITH_FREESTYLE)
 
85
        blender_include_dirs(../blender/freestyle)
 
86
endif()
 
87
 
83
88
# Setup the exe sources and buildinfo
84
89
set(SRC
85
90
        creator.c
277
282
                set(ADDON_EXCLUDE_CONDITIONAL "_addons_contrib/*")  # dummy, wont do anything
278
283
        endif()
279
284
 
 
285
        # do not install freestyle dir if disabled
 
286
        if(NOT WITH_FREESTYLE)
 
287
                set(FREESTYLE_EXCLUDE_CONDITIONAL "freestyle/*")
 
288
        else()
 
289
                set(FREESTYLE_EXCLUDE_CONDITIONAL "_freestyle/*")  # dummy, wont do anything
 
290
        endif()
 
291
 
280
292
        install(
281
293
                DIRECTORY ${CMAKE_SOURCE_DIR}/release/scripts/
282
294
                DESTINATION ${CMAKE_INSTALL_PREFIX}/share/blender/scripts/
283
295
                PATTERN ".svn" EXCLUDE
284
296
                PATTERN "__pycache__" EXCLUDE
285
297
                PATTERN "${ADDON_EXCLUDE_CONDITIONAL}" EXCLUDE
 
298
                PATTERN "${FREESTYLE_EXCLUDE_CONDITIONAL}" EXCLUDE
286
299
        )
287
300
        
288
301
        unset(ADDON_EXCLUDE_CONDITIONAL)
 
302
        unset(FREESTYLE_EXCLUDE_CONDITIONAL)
289
303
endif()
290
304
 
291
305
# localization
410
424
                        # on some platforms (like openSUSE) Python is linked
411
425
                        # to be used from lib64 folder.
412
426
                        # determine this from Python's libraries path
413
 
                        if(${PYTHON_LIBPATH} MATCHES "lib64$")
 
427
                        #
 
428
                        # ugh, its possible 'lib64' is just a symlink to 'lib' which causes incorrect use of 'lib64'
 
429
                        get_filename_component(_pypath_real ${PYTHON_LIBPATH} REALPATH)
 
430
                        if(${_pypath_real} MATCHES "lib64$")
414
431
                                set(_target_LIB "lib64")
415
432
                        else()
416
433
                                set(_target_LIB "lib")
417
434
                        endif()
 
435
                        unset(_pypath_real)
418
436
 
419
437
                        # Copy the systems python into the install directory
420
438
                        # Scons copy in tools/Blender.py
471
489
        )
472
490
 
473
491
        if(WITH_PYTHON)
474
 
                set_lib_path(PYLIB "python")
475
 
 
476
 
                STRING(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${PYTHON_VERSION})
 
492
                string(REPLACE "." "" _PYTHON_VERSION_NO_DOTS ${PYTHON_VERSION})
477
493
 
478
494
                install(
479
 
                        FILES ${PYLIB}/lib/python${_PYTHON_VERSION_NO_DOTS}.dll
 
495
                        FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}.dll
480
496
                        DESTINATION ${TARGETDIR}
481
497
                        CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel
482
498
                )
483
499
 
484
500
                install(
485
 
                        FILES ${PYLIB}/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll
 
501
                        FILES ${LIBDIR}/python/lib/python${_PYTHON_VERSION_NO_DOTS}_d.dll
486
502
                        DESTINATION ${TARGETDIR}
487
503
                        CONFIGURATIONS Debug
488
504
                )
521
537
                unset(_PYTHON_VERSION_NO_DOTS)
522
538
        endif()
523
539
 
524
 
        if(CMAKE_CL_64)
525
 
                # png is statically linked on win64
526
 
                install(
527
 
                        FILES ${LIBDIR}/zlib/lib/zlib.dll
528
 
                        DESTINATION ${TARGETDIR}
529
 
                )
530
 
        else()
531
 
                #not needed since we link statically, maybe also unneeded for MinGW?
532
 
                if(NOT WITH_MINGW64)
533
 
                        install(
534
 
                                FILES
535
 
                                        ${LIBDIR}/zlib/lib/zlib.dll
536
 
                                DESTINATION ${TARGETDIR}
537
 
                        )
538
 
                endif()
539
 
        endif()
540
 
 
541
540
        if(MSVC)
542
541
                install(
543
542
                        FILES ${LIBDIR}/pthreads/lib/pthreadVC2.dll
570
569
        endif()
571
570
 
572
571
        if(WITH_CODEC_FFMPEG)
573
 
                install(
574
 
                        FILES
575
 
                                ${LIBDIR}/ffmpeg/lib/avcodec-53.dll
576
 
                                ${LIBDIR}/ffmpeg/lib/avformat-53.dll
577
 
                                ${LIBDIR}/ffmpeg/lib/avdevice-53.dll
578
 
                                ${LIBDIR}/ffmpeg/lib/avutil-51.dll
579
 
                                ${LIBDIR}/ffmpeg/lib/swscale-2.dll
580
 
                        DESTINATION ${TARGETDIR}
581
 
                )
 
572
                if(MSVC11)
 
573
                        install(
 
574
                                FILES
 
575
                                        ${LIBDIR}/ffmpeg/lib/avcodec-54.dll
 
576
                                        ${LIBDIR}/ffmpeg/lib/avformat-54.dll
 
577
                                        ${LIBDIR}/ffmpeg/lib/avdevice-54.dll
 
578
                                        ${LIBDIR}/ffmpeg/lib/avutil-52.dll
 
579
                                        ${LIBDIR}/ffmpeg/lib/avfilter-3.dll
 
580
                                        ${LIBDIR}/ffmpeg/lib/swresample-0.dll
 
581
                                        ${LIBDIR}/ffmpeg/lib/swscale-2.dll
 
582
                                DESTINATION ${TARGETDIR}
 
583
                        )
 
584
                else()
 
585
                        install(
 
586
                                FILES
 
587
                                        ${LIBDIR}/ffmpeg/lib/avcodec-53.dll
 
588
                                        ${LIBDIR}/ffmpeg/lib/avformat-53.dll
 
589
                                        ${LIBDIR}/ffmpeg/lib/avdevice-53.dll
 
590
                                        ${LIBDIR}/ffmpeg/lib/avutil-51.dll
 
591
                                        ${LIBDIR}/ffmpeg/lib/swscale-2.dll
 
592
                                DESTINATION ${TARGETDIR}
 
593
                        )
 
594
                endif()
582
595
                if(WITH_MINGW64)
583
596
                install(
584
597
                        FILES
597
610
        endif()
598
611
 
599
612
        if(WITH_OPENAL)
600
 
                install(
601
 
                        FILES
602
 
                                ${LIBDIR}/openal/lib/OpenAL32.dll
603
 
                                ${LIBDIR}/openal/lib/wrap_oal.dll
604
 
                        DESTINATION ${TARGETDIR}
605
 
                )
 
613
                if(MSVC11)
 
614
                        install(
 
615
                                FILES
 
616
                                        ${LIBDIR}/openal/lib/OpenAL32.dll
 
617
                                DESTINATION ${TARGETDIR}
 
618
                        )
 
619
                else()
 
620
                        install(
 
621
                                FILES
 
622
                                        ${LIBDIR}/openal/lib/OpenAL32.dll
 
623
                                        ${LIBDIR}/openal/lib/wrap_oal.dll
 
624
                                DESTINATION ${TARGETDIR}
 
625
                        )
 
626
                endif()
606
627
        endif()
607
628
 
 
629
#       if(WITH_JACK AND MSVC11)
 
630
#               if(CMAKE_CL_64)
 
631
#                       install(
 
632
#                               FILES
 
633
#                                       ${LIBDIR}/jack/lib/libjack64.dll
 
634
#                               DESTINATION ${TARGETDIR}
 
635
#                       )
 
636
#               else()
 
637
#                       install(
 
638
#                               FILES
 
639
#                                       ${LIBDIR}/jack/lib/libjack.dll
 
640
#                               DESTINATION ${TARGETDIR}
 
641
#                       )
 
642
#               endif()
 
643
#       endif()
 
644
 
608
645
        if(WITH_SDL)
609
646
                if(NOT CMAKE_CL_64)
610
647
                        install(
690
727
        )
691
728
 
692
729
        # python
693
 
        if(WITH_PYTHON AND NOT WITH_PYTHON_MODULE)
 
730
        if(WITH_PYTHON AND NOT WITH_PYTHON_MODULE AND NOT WITH_PYTHON_FRAMEWORK)
694
731
                # the python zip is first extract as part of the build process,
695
732
                # and then later installed as part of make install. this is much
696
733
                # quicker, and means we can easily exclude files on copy
743
780
                )
744
781
 
745
782
                # python
746
 
                if(WITH_PYTHON)
 
783
                if(WITH_PYTHON AND NOT WITH_PYTHON_FRAMEWORK)
747
784
                        add_custom_command(
748
785
                                OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/python
749
786
                                COMMAND rm -rf ${CMAKE_CURRENT_BINARY_DIR}/python/
831
868
                bf_editor_util
832
869
                bf_editor_uvedit
833
870
                bf_editor_curve
834
 
                bf_editor_armature
835
871
                bf_editor_gpencil
836
872
                bf_editor_interface
837
873
                bf_editor_mesh
838
874
                bf_editor_metaball
839
875
                bf_editor_object
 
876
                bf_editor_armature
840
877
                bf_editor_physics
841
878
                bf_editor_render
842
879
                bf_editor_screen
853
890
                bf_python_ext
854
891
                bf_python_mathutils
855
892
                bf_python_bmesh
 
893
                bf_freestyle
856
894
                bf_ikplugin
857
895
                bf_modifiers
858
896
                bf_bmesh
885
923
                extern_colamd
886
924
                ge_logic_ketsji
887
925
                extern_recastnavigation
888
 
                ge_phys_common
889
926
                ge_logic
890
927
                ge_rasterizer
891
928
                ge_oglrasterizer
914
951
                bf_intern_raskter
915
952
                bf_intern_opencolorio
916
953
                extern_rangetree
 
954
                extern_wcwidth
 
955
                extern_libmv
917
956
        )
918
957
 
919
958
        if(WITH_COMPOSITOR)
923
962
        endif()
924
963
 
925
964
        if(WITH_LIBMV)
926
 
                list(APPEND BLENDER_SORTED_LIBS extern_libmv)
927
 
                list(APPEND BLENDER_SORTED_LIBS extern_ssba)
928
965
                list(APPEND BLENDER_SORTED_LIBS extern_ceres)
929
966
        endif()
930
967
 
976
1013
                list_insert_after(BLENDER_SORTED_LIBS "bf_blenkernel" "bf_intern_rigidbody")
977
1014
        endif()
978
1015
 
979
 
        if(WITH_BULLET AND NOT WITH_BULLET_SYSTEM)
 
1016
        if(WITH_BULLET AND NOT WITH_SYSTEM_BULLET)
980
1017
                list_insert_after(BLENDER_SORTED_LIBS "ge_logic_ngnetwork" "extern_bullet")
981
1018
        endif()
982
1019