~ubuntu-branches/ubuntu/wily/webbrowser-app/wily-proposed

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/Extras/Browser/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-06-09 10:44:31 UTC
  • mto: This revision was merged to the branch mainline in revision 70.
  • Revision ID: package-import@ubuntu.com-20140609104431-kt3uaqgl73dh9kgj
Tags: upstream-0.23+14.10.20140609
ImportĀ upstreamĀ versionĀ 0.23+14.10.20140609

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project(webbrowser-plugin)
2
2
 
3
 
if(NOT CMAKE_CROSSCOMPILING)
4
 
    find_program(QMAKE_EXECUTABLE qmake)
5
 
    if(QMAKE_EXECUTABLE STREQUAL "QMAKE_EXECUTABLE-NOTFOUND")
6
 
        message(FATAL_ERROR "qmake not found")
7
 
    endif()
8
 
    execute_process(
9
 
        COMMAND ${QMAKE_EXECUTABLE} -query QT_INSTALL_QML
10
 
        RESULT_VARIABLE RESULT
11
 
        OUTPUT_VARIABLE QT_INSTALL_QML
12
 
        OUTPUT_STRIP_TRAILING_WHITESPACE
13
 
    )
14
 
    if(NOT RESULT EQUAL 0)
15
 
        message(FATAL_ERROR "Failed to determine QT_INSTALL_QML from qmake")
16
 
    endif()
17
 
else()
18
 
    # qmake isn't multi-arch aware as it installs arch-specific mkspec files
19
 
    # in to /usr/share, so we can't use it here (we'd need a qmake binary
20
 
    # for the host arch using data for the target arch)
21
 
    set(QT_INSTALL_QML "/usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/qt5/qml")
22
 
endif()
23
3
set(WEBBROWSER_IMPORTS_DIR "${QT_INSTALL_QML}/Ubuntu/Components/Extras/Browser")
24
4
 
25
5
set(PLUGIN ubuntu-ui-extras-browser-plugin)
46
26
                       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_file}
47
27
                       COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${_file} ${CMAKE_CURRENT_BINARY_DIR}/${_file})
48
28
  endforeach(_file)
49
 
  add_custom_target(copy_files_to_build_dir DEPENDS ${copied})
50
 
  add_dependencies(${PLUGIN} copy_files_to_build_dir)
 
29
  add_custom_target(copy_files_to_build_dir_legacy DEPENDS ${copied})
 
30
  add_dependencies(${PLUGIN} copy_files_to_build_dir_legacy)
51
31
endif()