Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from hunter-packages/pr.fix.dir
Browse files Browse the repository at this point in the history
Fix directory name
  • Loading branch information
ruslo authored Dec 20, 2017
2 parents 9fc38a0 + 6b79ed9 commit b4bc883
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ matrix:
- os: osx
env: CONFIG=Release TOOLCHAIN=libcxx
- os: osx
env: CONFIG=Debug TOOLCHAIN=osx-10-11
env: CONFIG=Debug TOOLCHAIN=osx-10-12
- os: osx
env: CONFIG=Release TOOLCHAIN=osx-10-11
env: CONFIG=Release TOOLCHAIN=osx-10-12
- os: osx
env: CONFIG=Debug TOOLCHAIN=ios-nocodesign-9-3
env: CONFIG=Debug TOOLCHAIN=ios-nocodesign-10-3
- os: osx
env: CONFIG=Release TOOLCHAIN=ios-nocodesign-9-3
env: CONFIG=Release TOOLCHAIN=ios-nocodesign-10-3
- os: osx
env: CONFIG=Debug TOOLCHAIN=android-ndk-r10e-api-19-armeabi-v7a-neon
- os: osx
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.3) # IN_LIST

include("cmake/HunterGate.cmake")
HunterGate(
URL "https://github.com/ruslo/hunter/archive/v0.19.10.tar.gz"
SHA1 "73b5a5253b75d5ed79c89242c167ca1f94386621"
URL "https://github.com/ruslo/hunter/archive/v0.19.205.tar.gz"
SHA1 "9771566fa6d618202d8447122b3e7951505ed779"
)

project(gauze VERSION 0.2.1)
Expand Down
10 changes: 0 additions & 10 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@

environment:
matrix:
- TOOLCHAIN: "vs-10-2010"
CONFIG: "Release"
- TOOLCHAIN: "vs-10-2010"
CONFIG: "Debug"

- TOOLCHAIN: "vs-11-2012"
CONFIG: "Release"
- TOOLCHAIN: "vs-11-2012"
CONFIG: "Debug"

- TOOLCHAIN: "vs-12-2013-win64"
CONFIG: "Release"
- TOOLCHAIN: "vs-12-2013-win64"
Expand Down
8 changes: 8 additions & 0 deletions cmake/templates/AndroidTest.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,15 @@ foreach(arg ${app_arguments})
if(NOT IS_DIRECTORY "${resource_dir}")
message(FATAL_ERROR "Not a directory: ${resource_dir}")
endif()

# Remove trailing '/' so we can get last component correctly
get_filename_component(resource_dir "${resource_dir}" ABSOLUTE)

get_filename_component(res_name "${resource_dir}" NAME)
if("${res_name}" STREQUAL "")
message(FATAL_ERROR "Can't get directory name")
endif()

set(res_path "${data_dir}/${res_name}")
set(arguments "${arguments} \"${res_path}\"")

Expand Down
8 changes: 8 additions & 0 deletions cmake/templates/iOSTest.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,15 @@ foreach(arg ${app_arguments})
if(NOT IS_DIRECTORY "${resource_dir}")
message(FATAL_ERROR "Not a directory: ${resource_dir}")
endif()

# Remove trailing '/' so we can get last component correctly
get_filename_component(resource_dir "${resource_dir}" ABSOLUTE)

get_filename_component(res_name "${resource_dir}" NAME)
if("${res_name}" STREQUAL "")
message(FATAL_ERROR "Can't get directory name")
endif()

set(res_path "@GAUZE_IOS_UPLOAD_ROOT@/${res_name}")

# We need to keep GAUZE_RESOURCE_FILE for one more round of
Expand Down

0 comments on commit b4bc883

Please sign in to comment.