Building README: Update to CMake information.

This commit is contained in:
John Kessenich 2015-06-29 10:42:27 -06:00
parent 8acc32bd89
commit 63cebdb4c2

View File

@ -35,41 +35,16 @@ The applied stage-specific rules are based on the file extension:
There is also a non-shader extension There is also a non-shader extension
* `.conf` for a configuration file of limits, see usage statement for example * `.conf` for a configuration file of limits, see usage statement for example
Source: Build and run on Linux Building
------------------------------- --------
A simple bash script `BuildLinux.sh` is provided at the root directory CMake: The currently maintained and preferred way of building is through CMake.
to do the build and run a test cases. You will need a recent version of In MSVC, after running CMake, you may need to use the Configuration Manager to
bison installed. check the INSTALL project.
Once the executable is generated, it needs to be dynamically linked with the Note there are some legacy build methods still intermingled within the directory
shared object created in `lib` directory. To achieve that, `cd` to structure (make, MSVC), but these are no longer maintained, having been
`StandAlone` directory to update the `LD_LIBRARY_PATH` as follows replaced with CMake.
```bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./../glslang/MachineIndependent/lib
```
You can also update `LD_LIBRARY_PATH` in the `.cshrc` or `.bashrc` file,
depending on the shell you are using. You will need to give the complete path
of `lib` directory in `.cshrc` or `.bashrc` files.
Source: Build and run on Windows
--------------------------------
Current development is with Visual Studio verion 11 (2012). The solution
file is in the project's root directory `Standalone.sln`.
Building the StandAlone project (the default) will create `glslangValidate.exe`
and copy it into the `Test` directory and `Install` directory. This allows
local test scripts to use either the debug or release version, whichever was
built last.
Windows execution and testing is generally done from within a cygwin
shell.
Note: Despite appearances, the use of a DLL is currently disabled; it
simply makes a standalone executable from a statically linked library.
Programmatic Interfaces Programmatic Interfaces
----------------------- -----------------------