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)
else(APPNAME)
set(APPNAME Onelab)
endif(APPNAME)
# find all benchmarks who provide infos.xml
find_path(BENCHMARKSDIR benchmarks/)
file(GLOB BENCHMARKSDIR ${BENCHMARKSDIR}/benchmarks/*)
if("${APPNAME}" STREQUAL "BBEMG")
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})
if(IS_DIRECTORY ${SUBDIR})
file(GLOB INFOSFILE ${SUBDIR}/infos.xml)
......@@ -117,13 +123,20 @@ if(ENABLE_BUILD_IOS_EMULATOR OR ENABLE_BUILD_IOS)
endforeach(IMG)
endforeach(DIR)
# if(APPNAME NOT EQUAL Onelab)
# add custom command in target xcodeProject that:
# modifies project.pbxproj
# modifies ipad/iphone story board
# using sed
# copies new image assets
# endif()
if("${APPNAME}" STREQUAL "BBEMG")
add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
sed -e \"s|Onelab|BBEMG|\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG.xcodeproj/project.pbxproj")
add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
sed -e \"s|Images.xcassets|ImagesBBEMG.xcassets|g\" -i \"\" "${CMAKE_CURRENT_BINARY_DIR}/BBEMG/BBEMG.xcodeproj/project.pbxproj")
add_custom_command(TARGET xcodeProject POST_BUILD COMMAND
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 "${APPNAME} for iOS successfully configured:")
......
......@@ -275,7 +275,7 @@
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0500;
ORGANIZATIONNAME = "Maxime Graulich";
ORGANIZATIONNAME = "Christophe Geuzaine";
TargetAttributes = {
9C9608351712C16300E1D4A0 = {
DevelopmentTeam = 7KGA566932;
......
#!/bin/sh
source=../../../utils/icons/gmsh_mobile_master.png
#source=../../../utils/icons/bbemg-twitter.png
mkdir -p ios.iconset
# App icons (iPad)
convert -scale 152 ../../../utils/icons/gmsh_mobile_master.png ios.iconset/icon_app_ipad_retina.png
convert -scale 76 ../../../utils/icons/gmsh_mobile_master.png ios.iconset/icon_app_ipad.png
convert -scale 152 ${source} ios.iconset/icon_app_ipad_retina.png
convert -scale 76 ${source} ios.iconset/icon_app_ipad.png
# 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