Skip to content
Snippets Groups Projects
Commit 6da4fd6a authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

branding

parent 836adbc7
No related branches found
No related tags found
No related merge requests found
...@@ -13,10 +13,16 @@ if(APPNAME) ...@@ -13,10 +13,16 @@ if(APPNAME)
else(APPNAME) else(APPNAME)
set(APPNAME Onelab) set(APPNAME Onelab)
endif(APPNAME) endif(APPNAME)
# find all benchmarks who provide infos.xml # find all benchmarks who provide infos.xml
find_path(BENCHMARKSDIR benchmarks/) if("${APPNAME}" STREQUAL "BBEMG")
file(GLOB BENCHMARKSDIR ${BENCHMARKSDIR}/benchmarks/*) find_path(BENCHMARKSDIR benchmarks_private/)
file(GLOB BENCHMARKSDIR ${BENCHMARKSDIR}/benchmarks_private/bbemg*)
else("${APPNAME}" STREQUAL "BBEMG")
find_path(BENCHMARKSDIR benchmarks/)
file(GLOB BENCHMARKSDIR ${BENCHMARKSDIR}/benchmarks/*)
endif("${APPNAME}" STREQUAL "BBEMG")
foreach(SUBDIR ${BENCHMARKSDIR}) foreach(SUBDIR ${BENCHMARKSDIR})
if(IS_DIRECTORY ${SUBDIR}) if(IS_DIRECTORY ${SUBDIR})
file(GLOB INFOSFILE ${SUBDIR}/infos.xml) file(GLOB INFOSFILE ${SUBDIR}/infos.xml)
...@@ -117,13 +123,20 @@ if(ENABLE_BUILD_IOS_EMULATOR OR ENABLE_BUILD_IOS) ...@@ -117,13 +123,20 @@ if(ENABLE_BUILD_IOS_EMULATOR OR ENABLE_BUILD_IOS)
endforeach(IMG) endforeach(IMG)
endforeach(DIR) endforeach(DIR)
# if(APPNAME NOT EQUAL Onelab) if("${APPNAME}" STREQUAL "BBEMG")
# add custom command in target xcodeProject that: add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
# modifies project.pbxproj sed -e \"s|Onelab|BBEMG|\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG.xcodeproj/project.pbxproj")
# modifies ipad/iphone story board add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
# using sed sed -e \"s|Images.xcassets|ImagesBBEMG.xcassets|g\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG.xcodeproj/project.pbxproj")
# copies new image assets add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
# endif() sed -e \"s|ONELAB|BBEMG|g\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG/en.lproj/iPhoneiPodStoryboard.storyboard")
add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
sed -e \"s|ONELAB|BBEMG|g\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG/en.lproj/iPadStoryboard.storyboard")
add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
sed -e \"s|Onelab/Mobile|BBEMG|g\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG/AboutViewController.mm")
add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
sed -e \"s|onelab.info|www.bbemg.be|g\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG/AboutViewController.mm")
endif("${APPNAME}" STREQUAL "BBEMG")
message(STATUS "") message(STATUS "")
message(STATUS "${APPNAME} for iOS successfully configured:") message(STATUS "${APPNAME} for iOS successfully configured:")
......
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
isa = PBXProject; isa = PBXProject;
attributes = { attributes = {
LastUpgradeCheck = 0500; LastUpgradeCheck = 0500;
ORGANIZATIONNAME = "Maxime Graulich"; ORGANIZATIONNAME = "Christophe Geuzaine";
TargetAttributes = { TargetAttributes = {
9C9608351712C16300E1D4A0 = { 9C9608351712C16300E1D4A0 = {
DevelopmentTeam = 7KGA566932; DevelopmentTeam = 7KGA566932;
......
#!/bin/sh #!/bin/sh
source=../../../utils/icons/gmsh_mobile_master.png
#source=../../../utils/icons/bbemg-twitter.png
mkdir -p ios.iconset mkdir -p ios.iconset
# App icons (iPad) # App icons (iPad)
convert -scale 152 ../../../utils/icons/gmsh_mobile_master.png ios.iconset/icon_app_ipad_retina.png convert -scale 152 ${source} ios.iconset/icon_app_ipad_retina.png
convert -scale 76 ../../../utils/icons/gmsh_mobile_master.png ios.iconset/icon_app_ipad.png convert -scale 76 ${source} ios.iconset/icon_app_ipad.png
# App icon (iPhone) # App icon (iPhone)
convert -scale 120 ../../../utils/icons/gmsh_mobile_master.png ios.iconset/icon_app_iphone_retina.png convert -scale 120 ${source} ios.iconset/icon_app_iphone_retina.png
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment