- Notifications
You must be signed in to change notification settings - Fork3
Buildexe libs#182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Buildexe libs#182
Changes fromall commits
Commits
Show all changes
29 commits Select commitHold shift + click to select a range
a1abee1 Added BuildccHome class
coder137f580c7d Added build_env_home.h/.cpp
coder137c7a1795 Updated build_env_setup.h/.cpp
coder1379d022d7 Added BuildExeArgs class
coder1376039ef0 Updated buildexe with BuildExeArgs class
coder137be2ffb2 Added build files to arg_lib_path
coder1377e80b86 Updated build_env_setup
coder137d68b5eb Update buildexe.cpp
coder1379307f57 Updated args_setup
coder13761c26cb Update buildexe.cpp
coder13759550ae Added UserTargetWithLibsSetup private API for script mode
coder137f850842 Update args_setup.cpp
coder137a7c1e9e Update build_env_setup.cpp
coder1376d05bc4 Updated args setup with LibInfo
coder137d5ab123 Update build_env_setup.cpp
coder1373d418b6 Added a buildexe specific libs example
coder137c03696b Update CMakeLists.txt
coder137bfe1c9c Added buildexe package manager document
coder1374ecaf01 Update buildexe_setup.rst
coder1370e07154 Update buildexe_package_manager.rst
coder13702f6558 Update buildexe_package_manager.rst
coder137bb7f6cd Update buildexe_package_manager.rst
coder137e3d0a98 Update buildexe_package_manager.rst
coder137223d937 Update buildexe_package_manager.rst
coder1373daa575 Update buildexe_package_manager.rst
coder13708bf3ef Update buildexe_package_manager.rst
coder137fc945d8 Updated linux and win with BuildExe Layout Setup
coder137613713b Update win_cmake_build.yml
coder137c27bee5 Update linux_gcc_cmake_build.yml
coder137File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
30 changes: 30 additions & 0 deletions.github/workflows/linux_gcc_cmake_build.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions.github/workflows/win_cmake_build.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletionsbuildexe/CMakeLists.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
58 changes: 20 additions & 38 deletionsbuildexe/buildexe.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
48 changes: 44 additions & 4 deletionsbuildexe/include/buildexe/args_setup.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletionsbuildexe/include/buildexe/build_env_home.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| /* | ||
| * Copyright 2021-2022 Niket Naidu. All rights reserved. | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
| #ifndef BUILDEXE_BUILD_ENV_HOME_H_ | ||
| #define BUILDEXE_BUILD_ENV_HOME_H_ | ||
| #include "buildcc.h" | ||
| namespace buildcc { | ||
| class BuildccHome { | ||
| public: | ||
| static void Init(); | ||
| static const fs::path &GetBuildccHomeDir() { | ||
| ExpectInitialized(); | ||
| return buildcc_home_; | ||
| } | ||
| static const fs::path &GetBuildccBaseDir() { | ||
| ExpectInitialized(); | ||
| return buildcc_base_; | ||
| } | ||
| static const fs::path &GetBuildccLibsDir() { | ||
| ExpectInitialized(); | ||
| return buildcc_libs_; | ||
| } | ||
| static const fs::path &GetBuildccExtensionsDir() { | ||
| ExpectInitialized(); | ||
| return buildcc_extensions_; | ||
| } | ||
| static bool IsInitialized() { return initialized_; } | ||
| static void ExpectInitialized() { | ||
| env::assert_fatal(IsInitialized(), "BuildccHome is not initialized"); | ||
| } | ||
| private: | ||
| static fs::path buildcc_home_; | ||
| static fs::path buildcc_base_; | ||
| static fs::path buildcc_libs_; | ||
| static fs::path buildcc_extensions_; | ||
| static bool initialized_; | ||
| }; | ||
| } // namespace buildcc | ||
| #endif |
20 changes: 10 additions & 10 deletionsbuildexe/include/buildexe/build_env_setup.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.