Skip to content

Commit

Permalink
Merge branch 'Pelagicore-master-1' into feature/standardize_dbus
Browse files Browse the repository at this point in the history
  • Loading branch information
idleroamer committed Oct 22, 2020
2 parents 8e122fb + 33b996d commit adcce61
Show file tree
Hide file tree
Showing 109 changed files with 124 additions and 813 deletions.
71 changes: 0 additions & 71 deletions .appveyor.yml

This file was deleted.

7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})

function(add_example_script NAME MAIN_QML_FILE)
set(QML_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${MAIN_QML_FILE})
if(WIN32)
configure_file(${PROJECT_SOURCE_DIR}/examples/launch-example.bat.in ${PROJECT_BINARY_DIR}/examples/launch-${NAME}.bat @ONLY)
else()
configure_file(${PROJECT_SOURCE_DIR}/examples/launch-example.sh ${PROJECT_BINARY_DIR}/examples/launch-${NAME}.sh @ONLY)
endif()
configure_file(${PROJECT_SOURCE_DIR}/examples/launch-example.sh ${PROJECT_BINARY_DIR}/examples/launch-${NAME}.sh @ONLY)
endfunction()


add_subdirectory(src)

if(FACELIFT_BUILD_EXAMPLES)
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[![Travis status](https://travis-ci.com/Pelagicore/facelift.svg?branch=master)](https://travis-ci.com/Pelagicore/facelift)
[![Appveyor status](https://ci.appveyor.com/api/projects/status/github/pelagicore/facelift?svg=true&branch=master)](https://ci.appveyor.com/project/weimerb/facelift-vum0d)

# Motivation

Expand Down
13 changes: 0 additions & 13 deletions ci/appveyor/setup_cmake.bat

This file was deleted.

20 changes: 3 additions & 17 deletions cmake/faceliftMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ endif()
include(GNUInstallDirs) # for standard installation locations
include(CMakePackageConfigHelpers)

# find_package(PythonInterp) causes some issues if another version has been searched before, and it is not needed anyway on non-Win32 platforms
if(WIN32)
find_package(PythonInterp 3.0 REQUIRED)
set(FACELIFT_PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE})
endif()

if(ENABLE_LTO)
cmake_minimum_required(VERSION 3.9.0)
include(CheckIPOSupported)
Expand Down Expand Up @@ -203,10 +197,6 @@ function(facelift_generate_code )
list(APPEND BASE_CODEGEN_COMMAND "--dependency" "${IMPORT_FOLDER}")
endforeach()

if(ARGUMENT_LIBRARY_NAME)
list(APPEND BASE_CODEGEN_COMMAND "--library" "${ARGUMENT_LIBRARY_NAME}")
endif()

if(ARGUMENT_GENERATE_ALL)
list(APPEND BASE_CODEGEN_COMMAND "--all")
endif()
Expand Down Expand Up @@ -267,11 +257,8 @@ function(facelift_add_interface TARGET_NAME)

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

if(WIN32)
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}
else()
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
endif()
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


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

if(NOT CMAKE_CROSSCOMPILING AND NOT WIN32)
# not supported for now on Win32 since the required libraries can't be loaded without setting the PATH variable
if(NOT CMAKE_CROSSCOMPILING)
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/${INSTALL_PATH}/plugins.qmltypes
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
Expand Down
Loading

0 comments on commit adcce61

Please sign in to comment.