Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Calamares
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
Calamares
Commits
d53643f7
Commit
d53643f7
authored
10 years ago
by
Teo Mrnjavac
Browse files
Options
Downloads
Patches
Plain Diff
New CalamaresAddBrandingSubdirectory macro.
parent
006f0e3e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+3
-0
3 additions, 0 deletions
CMakeLists.txt
CalamaresAddBrandingSubdirectory.cmake
+33
-0
33 additions, 0 deletions
CalamaresAddBrandingSubdirectory.cmake
CalamaresUse.cmake.in
+1
-0
1 addition, 0 deletions
CalamaresUse.cmake.in
with
37 additions
and
0 deletions
CMakeLists.txt
+
3
−
0
View file @
d53643f7
...
@@ -121,6 +121,7 @@ configure_file( CalamaresUse.cmake.in "${PROJECT_BINARY_DIR}/CalamaresUse.cmake"
...
@@ -121,6 +121,7 @@ configure_file( CalamaresUse.cmake.in "${PROJECT_BINARY_DIR}/CalamaresUse.cmake"
file
(
COPY CalamaresAddLibrary.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
file
(
COPY CalamaresAddLibrary.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
file
(
COPY CalamaresAddModuleSubdirectory.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
file
(
COPY CalamaresAddModuleSubdirectory.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
file
(
COPY CalamaresAddPlugin.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
file
(
COPY CalamaresAddPlugin.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
file
(
COPY CalamaresAddBrandingSubdirectory.cmake DESTINATION
"
${
PROJECT_BINARY_DIR
}
"
)
set
(
CALAMARES_LIBRARIES calamares
)
set
(
CALAMARES_LIBRARIES calamares
)
...
@@ -154,7 +155,9 @@ install(
...
@@ -154,7 +155,9 @@ install(
"
${
PROJECT_BINARY_DIR
}
/CalamaresConfigVersion.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresConfigVersion.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresUse.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresUse.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresAddPlugin.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresAddPlugin.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresAddModuleSubdirectory.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresAddLibrary.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresAddLibrary.cmake"
"
${
PROJECT_BINARY_DIR
}
/CalamaresAddBrandingSubdirectory.cmake"
DESTINATION
DESTINATION
"
${
CMAKE_INSTALL_CMAKEDIR
}
"
"
${
CMAKE_INSTALL_CMAKEDIR
}
"
)
)
...
...
This diff is collapsed.
Click to expand it.
CalamaresAddBrandingSubdirectory.cmake
0 → 100644
+
33
−
0
View file @
d53643f7
include
(
CMakeColors
)
function
(
calamares_add_branding_subdirectory
)
set
(
SUBDIRECTORY
${
ARGV0
}
)
if
(
EXISTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SUBDIRECTORY
}
/branding.desc"
)
set
(
BRANDING_DIR share/calamares/branding
)
set
(
BRANDING_COMPONENT_DESTINATION
${
BRANDING_DIR
}
/
${
SUBDIRECTORY
}
)
# We glob all the files inside the subdirectory, and we make sure they are
# synced with the bindir structure and installed.
file
(
GLOB BRANDING_COMPONENT_FILES RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SUBDIRECTORY
}
"
${
SUBDIRECTORY
}
/*"
)
foreach
(
BRANDING_COMPONENT_FILE
${
BRANDING_COMPONENT_FILES
}
)
if
(
NOT IS_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/
${
SUBDIRECTORY
}
/
${
BRANDING_COMPONENT_FILE
}
)
configure_file
(
${
SUBDIRECTORY
}
/
${
BRANDING_COMPONENT_FILE
}
${
SUBDIRECTORY
}
/
${
BRANDING_COMPONENT_FILE
}
COPYONLY
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
SUBDIRECTORY
}
/
${
BRANDING_COMPONENT_FILE
}
DESTINATION
${
BRANDING_COMPONENT_DESTINATION
}
)
endif
()
endforeach
()
message
(
"--
${
BoldYellow
}
Found
${
CALAMARES_APPLICATION_NAME
}
branding component:
${
BoldRed
}${
SUBDIRECTORY
}${
ColorReset
}
"
)
if
(
NOT CMAKE_BUILD_TYPE STREQUAL
"Release"
)
message
(
"
${
Green
}
TYPE:
${
ColorReset
}
branding component"
)
# message( " ${Green}FILES:${ColorReset} ${BRANDING_COMPONENT_FILES}" )
message
(
"
${
Green
}
BRANDING_COMPONENT_DESTINATION:
${
ColorReset
}
${
BRANDING_COMPONENT_DESTINATION
}
"
)
message
(
""
)
endif
()
else
()
message
(
"--
${
BoldYellow
}
Warning:
${
ColorReset
}
tried to add branding component subdirectory
${
BoldRed
}${
SUBDIRECTORY
}${
ColorReset
}
which has no branding.desc."
)
message
(
""
)
endif
()
endfunction
()
This diff is collapsed.
Click to expand it.
CalamaresUse.cmake.in
+
1
−
0
View file @
d53643f7
...
@@ -9,3 +9,4 @@ endif()
...
@@ -9,3 +9,4 @@ endif()
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddLibrary.cmake" )
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddLibrary.cmake" )
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddModuleSubdirectory.cmake" )
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddModuleSubdirectory.cmake" )
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddPlugin.cmake" )
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddPlugin.cmake" )
include( "${CALAMARES_CMAKE_DIR}/CalamaresAddBrandingSubdirectory.cmake" )
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment