Skip to content

Commit 03ef53d

Browse files
authored
Merge branch 'master' into api_proxy_clean
2 parents acd86a1 + 8f4d2e9 commit 03ef53d

File tree

115 files changed

+128
-858
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+128
-858
lines changed

.appveyor.yml

-71
This file was deleted.

CMakeLists.txt

+1-6
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
9393

9494
function(add_example_script NAME MAIN_QML_FILE)
9595
set(QML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${MAIN_QML_FILE})
96-
if(WIN32)
97-
configure_file(${PROJECT_SOURCE_DIR}/examples/launch-example.bat.in ${PROJECT_BINARY_DIR}/examples/launch-${NAME}.bat @ONLY)
98-
else()
99-
configure_file(${PROJECT_SOURCE_DIR}/examples/launch-example.sh ${PROJECT_BINARY_DIR}/examples/launch-${NAME}.sh @ONLY)
100-
endif()
96+
configure_file(${PROJECT_SOURCE_DIR}/examples/launch-example.sh ${PROJECT_BINARY_DIR}/examples/launch-${NAME}.sh @ONLY)
10197
endfunction()
10298

103-
10499
add_subdirectory(src)
105100

106101
if(FACELIFT_BUILD_EXAMPLES)

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
[![Travis status](https://travis-ci.com/Pelagicore/facelift.svg?branch=master)](https://travis-ci.com/Pelagicore/facelift)
2-
[![Appveyor status](https://ci.appveyor.com/api/projects/status/github/pelagicore/facelift?svg=true&branch=master)](https://ci.appveyor.com/project/weimerb/facelift-vum0d)
32

43
# Motivation
54

ci/appveyor/setup_cmake.bat

-13
This file was deleted.

cmake/faceliftMacros.cmake

+3-17
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ endif()
1717
include(GNUInstallDirs) # for standard installation locations
1818
include(CMakePackageConfigHelpers)
1919

20-
# find_package(PythonInterp) causes some issues if another version has been searched before, and it is not needed anyway on non-Win32 platforms
21-
if(WIN32)
22-
find_package(PythonInterp 3.0 REQUIRED)
23-
set(FACELIFT_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
24-
endif()
25-
2620
if(ENABLE_LTO)
2721
cmake_minimum_required(VERSION 3.9.0)
2822
include(CheckIPOSupported)
@@ -203,10 +197,6 @@ function(facelift_generate_code )
203197
list(APPEND BASE_CODEGEN_COMMAND "--dependency" "${IMPORT_FOLDER}")
204198
endforeach()
205199

206-
if(ARGUMENT_LIBRARY_NAME)
207-
list(APPEND BASE_CODEGEN_COMMAND "--library" "${ARGUMENT_LIBRARY_NAME}")
208-
endif()
209-
210200
if(ARGUMENT_GENERATE_ALL)
211201
list(APPEND BASE_CODEGEN_COMMAND "--all")
212202
endif()
@@ -267,11 +257,8 @@ function(facelift_add_interface TARGET_NAME)
267257

268258
set(GENERATED_HEADERS_INSTALLATION_LOCATION ${FACELIFT_GENERATED_HEADERS_INSTALLATION_LOCATION}/${LIBRARY_NAME})
269259

270-
if(WIN32)
271-
set(OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/facelift_generated/${LIBRARY_NAME}) # There is a weird issue on Windows related to the MOC if the generated files are outside of ${CMAKE_CURRENT_BINARY_DIR}
272-
else()
273-
set(OUTPUT_PATH ${CMAKE_BINARY_DIR}/facelift_generated/${LIBRARY_NAME}) # Keep generated file folder outside of CMAKE_CURRENT_BINARY_DIR to avoid having the MOC generated file inside the same folder, which would cause unnecessary recompiles
274-
endif()
260+
set(OUTPUT_PATH ${CMAKE_BINARY_DIR}/facelift_generated/${LIBRARY_NAME}) # Keep generated file folder outside of CMAKE_CURRENT_BINARY_DIR to avoid having the MOC generated file inside the same folder, which would cause unnecessary recompiles
261+
275262

276263
set(TYPES_OUTPUT_PATH ${OUTPUT_PATH}/types)
277264
set(DEVTOOLS_OUTPUT_PATH ${OUTPUT_PATH}/devtools)
@@ -975,8 +962,7 @@ function(facelift_add_qml_plugin PLUGIN_NAME)
975962
file(WRITE ${CMAKE_BINARY_DIR}/${INSTALL_PATH}/qmldir "${QMLDIR_CONTENT}")
976963
file(WRITE ${CMAKE_BINARY_DIR}/${INSTALL_PATH}/qmldir.installed "${QMLDIR_CONTENT}")
977964

978-
if(NOT CMAKE_CROSSCOMPILING AND NOT WIN32)
979-
# not supported for now on Win32 since the required libraries can't be loaded without setting the PATH variable
965+
if(NOT CMAKE_CROSSCOMPILING)
980966
add_custom_command(
981967
OUTPUT ${CMAKE_BINARY_DIR}/${INSTALL_PATH}/plugins.qmltypes
982968
COMMAND ${_qt5Core_install_prefix}/bin/qmlplugindump -noinstantiate ${URI} ${PLUGIN_MAJOR_VERSION}.${PLUGIN_MINOR_VERSION} ${CMAKE_BINARY_DIR}/imports -output ${CMAKE_BINARY_DIR}/${INSTALL_PATH}/plugins.qmltypes || touch ${CMAKE_BINARY_DIR}/${INSTALL_PATH}/plugins.qmltypes

0 commit comments

Comments
 (0)