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

Commit

Permalink
Merge internal branch into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelsey Mayfield committed Apr 29, 2016
2 parents d6d5754 + d72d27b commit a2f4858
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
12 changes: 10 additions & 2 deletions buildutil/cmake_common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,6 @@ function(set_common_build_variables)
CACHE PATH "Directory containing the fplutil library.")
set(dependencies_libfplutil_dir "${fpl_root}/fplutil/libfplutil"
CACHE PATH "Directory containing the libfplutil library.")
set(dependencies_gtest_dir "${fpl_root}/googletest"
CACHE PATH "Directory containing the GoogleTest library.")
set(dependencies_mathfu_dir "${fpl_root}/mathfu"
CACHE PATH "Directory containing the MathFu library.")
set(dependencies_motive_dir "${fpl_root}/motive"
Expand All @@ -90,6 +88,16 @@ function(set_common_build_variables)
set(dependencies_scene_lab_dir "${fpl_root}/scene_lab"
CACHE PATH "Directory containing the Scene Lab library.")

# Depending on googletest version, the gtest directory may be nested under
# googletest/googletest
if(EXISTS "${fpl_root}/googletest/googletest")
set(dependencies_gtest_dir "${fpl_root}/googletest/googletest"
CACHE PATH "Directory containing the GoogleTest library.")
else()
set(dependencies_gtest_dir "${fpl_root}/googletest"
CACHE PATH "Directory containing the GoogleTest library.")
endif()

# third party module directory variables
set(dependencies_vectorial_dir "${third_party_root}/vectorial"
CACHE PATH "Directory containing the Vectorial library.")
Expand Down
7 changes: 5 additions & 2 deletions disttools/push_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -687,9 +687,12 @@ def update_docs(self, branch, docs_branch, dryrun):
# Clean the working copy and reset to the docs branch.
dependencies_dir = os.path.join(self.working_copy, 'dependencies')
if os.path.exists(dependencies_dir):
# This is only required if the docs are being built from the github
# master branch which includes a set of submodules.
if os.path.exists(os.path.join(self.working_copy, '.gitmodules')):
self.subprocess_runner.check_call(
['git', 'submodule', 'deinit', '.'], cwd=self.working_copy)
shutil.rmtree(dependencies_dir)
self.subprocess_runner.check_call(['git', 'submodule', 'deinit', '.'],
cwd=self.working_copy)
if Package.git_remote_branch_exists(self.git_remote_upstream,
docs_branch, self.working_copy,
self.subprocess_runner):
Expand Down
2 changes: 1 addition & 1 deletion libfplutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if(NOT DEFINED fpl_root)
endif ()
endif()

include (${fpl_root}/fplutil/buildutil/cmake_common.txt)
include (${CMAKE_CURRENT_SOURCE_DIR}/../buildutil/cmake_common.txt)
set_common_build_variables()

# Includes for this project.
Expand Down

0 comments on commit a2f4858

Please # to comment.