From d463a2e17898aa564c9aca8aff170d0dc638dbcb Mon Sep 17 00:00:00 2001 From: changml Date: Thu, 25 Mar 2021 16:35:40 -0700 Subject: [PATCH] Addressed feedback, updated build commands, redistributables --- README.md | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0572c824ee..c4f8c86fcf 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ If you have the Git credential manager core installed, you should not be prompte ### Build Steps -1. Download the 3rdParty zip file from here: **[https://d2c171ws20a1rv.cloudfront.net/3rdParty-windows-no-symbols-rev4.zip](https://d2c171ws20a1rv.cloudfront.net/3rdParty-windows-no-symbols-rev4.zip])** +1. Download the 3rdParty zip file from here: **[https://d2c171ws20a1rv.cloudfront.net/3rdParty-windows-no-symbols-rev7.zip](https://d2c171ws20a1rv.cloudfront.net/3rdParty-windows-no-symbols-rev7.zip)** 2. Unzip this file into a writable folder. This will also act as a cache location for the 3rdParty downloader by default (configurable with the `LY_PACKAGE_DOWNLOAD_CACHE_LOCATION` environment variable) 3. Install the following redistributables to the following: - Visual Studio and VC++ redistributable can be installed to any location @@ -72,9 +72,9 @@ If you have the Git credential manager core installed, you should not be prompte set LY_PACKAGE_SERVER_URLS="https://d2c171ws20a1rv.cloudfront.net" ``` -5. Configure and build the source into a binary using this command line, replacing to a path you've created +5. Configure the source into a solution using this command line, replacing to a path you've created ``` - cmake -B \windows_10 -S -G "Visual Studio 16 2019" -DLY_3RDPARTY_PATH="%LY_3RDPARTY_PATH% -DLY_PROJECTS=CMakeTestbed -DLY_MONOLITHIC_GAME=1 + cmake -B -S -G "Visual Studio 16 2019" -DLY_3RDPARTY_PATH="%LY_3RDPARTY_PATH% -DLY_UNITY_BUILD=ON -DLY_PROJECTS=AutomatedTesting -DLY_MONOLITHIC_GAME=1 ``` 6. Alternatively, you can do this through the CMake GUI: @@ -84,16 +84,27 @@ If you have the Git credential manager core installed, you should not be prompte 3. Select a path where to build binaries under "Where to build the binaries" 4. Click "Configure" 5. Wait for the key values to populate. Fill in the fields that are relevant, including `LY_3RDPARTY_PATH`, `LY_PACKAGE_SERVER_URLS`, and `LY_PROJECTS` + 6. Click "Generate" -7. After some time, the compile will complete and binaries will be available in the build path you've specified - -8. Setup projects using this command +7. The configuration of the solution is complete. To build the Editor and AssetProcessor to binaries, run this command inside your repo: ``` - \scripts\o3de.bat create-project --project-path + cmake --build --target AutomatedTesting.GameLauncher AssetProcessor Editor --config profile -- /m ``` + +8. This will compile after some time and binaries will be available in the build path you've specified -## License +### Setting up new projects +1. Setup new projects using this command + ``` + \scripts\o3de.bat create-project --project-path + ``` +2. Once you're ready to build the project, run the same set of commands to configure and build: + ``` + cmake -B -S -G "Visual Studio 16 2019" -DLY_3RDPARTY_PATH="%LY_3RDPARTY_PATH%" -DLY_PROJECTS= -DLY_MONOLITHIC_GAME=1 -For terms please see the LICENSE*.TXT file at the root of this distribution. + cmake --build --target --config profile -- /m + ``` +## License +For terms please see the LICENSE*.TXT file at the root of this distribution. \ No newline at end of file