aboutsummaryrefslogtreecommitdiff
path: root/paludis/environments
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-07-19 22:50:04 -0700
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-11-30 08:25:19 -0800
commita8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f (patch)
treecfded8a49cfc5b7e52ab2615d24a74c5fa7b479e /paludis/environments
parent9cb3984eb0e0829d4f05b6116f6ae572bc44d21b (diff)
downloadpaludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.gz
paludis-a8c9e5d64d9a5a0382fccaa98220d22cbaf9b55f.tar.xz
build: introduce cmake based build system
Diffstat (limited to 'paludis/environments')
-rw-r--r--paludis/environments/CMakeLists.txt8
-rw-r--r--paludis/environments/paludis/CMakeLists.txt29
-rw-r--r--paludis/environments/portage/CMakeLists.txt13
-rw-r--r--paludis/environments/test/CMakeLists.txt12
4 files changed, 62 insertions, 0 deletions
diff --git a/paludis/environments/CMakeLists.txt b/paludis/environments/CMakeLists.txt
new file mode 100644
index 000000000..58ec959ec
--- /dev/null
+++ b/paludis/environments/CMakeLists.txt
@@ -0,0 +1,8 @@
+
+foreach(environment ${PALUDIS_ALL_ENVIRONMENTS})
+ string(TOUPPER ${environment} uc_environment)
+ if(ENABLE_${uc_environment}_ENVIRONMENT)
+ add_subdirectory(${environment})
+ endif()
+endforeach()
+
diff --git a/paludis/environments/paludis/CMakeLists.txt b/paludis/environments/paludis/CMakeLists.txt
new file mode 100644
index 000000000..b56bacd88
--- /dev/null
+++ b/paludis/environments/paludis/CMakeLists.txt
@@ -0,0 +1,29 @@
+
+paludis_add_library(libpaludispaludisenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/bashable_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/extra_distribution_data.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/keywords_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/licenses_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/mirrors_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/output_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/package_mask_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis_config.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/paludis_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/suggestions_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/use_conf.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/world.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+target_compile_definitions(libpaludispaludisenvironment
+ PRIVATE
+ -DSHAREDIR="${CMAKE_INSTALL_FULL_DATAROOTDIR}")
+add_dependencies(libpaludispaludisenvironment libpaludisutil_SE)
+
+paludis_add_test(paludis_environment GTEST)
+paludis_add_test(world GTEST)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/default_output.conf"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_DATAROOTDIR}/paludis/environments/paludis")
+
diff --git a/paludis/environments/portage/CMakeLists.txt b/paludis/environments/portage/CMakeLists.txt
new file mode 100644
index 000000000..179426b73
--- /dev/null
+++ b/paludis/environments/portage/CMakeLists.txt
@@ -0,0 +1,13 @@
+
+paludis_add_library(libpaludisportageenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/portage_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+
+paludis_add_test(portage_environment GTEST)
+
+install(FILES
+ "${CMAKE_CURRENT_SOURCE_DIR}/bashrc"
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_LIBEXECDIR}/paludis/environments/portage")
+
diff --git a/paludis/environments/test/CMakeLists.txt b/paludis/environments/test/CMakeLists.txt
new file mode 100644
index 000000000..07db29b0d
--- /dev/null
+++ b/paludis/environments/test/CMakeLists.txt
@@ -0,0 +1,12 @@
+
+paludis_add_library(libpaludistestenvironment
+ OBJECT_LIBRARY
+ "${CMAKE_CURRENT_SOURCE_DIR}/test_environment.cc"
+ "${CMAKE_CURRENT_SOURCE_DIR}/registration.cc")
+add_dependencies(libpaludistestenvironment libpaludis_SE libpaludisutil_SE)
+
+install(FILES
+ ${CMAKE_CURRENT_SOURCE_DIR}/test_environment.hh
+ DESTINATION
+ "${CMAKE_INSTALL_FULL_INCLUDEDIR}/paludis-${PALUDIS_PKG_CONFIG_SLOT}/paludis/environments/test")
+