Rearrange headers
authorDavid Neto <dneto@google.com>
Wed, 17 Feb 2016 19:44:00 +0000 (14:44 -0500)
committerDavid Neto <dneto@google.com>
Wed, 17 Feb 2016 19:49:44 +0000 (14:49 -0500)
commit5a70335bf1c858b8cf6a22e35dcc41090496c3c1
tree48ac408f94d88c33e77951fc36220fe5a90fca5f
parentd1bb51dbb07be54666c074922670e618105e1046
Rearrange headers

Now we have public headers arranged as follows:
$SPIRV_TOOLS_ROOT/include/spirv-tools/libspirv.h
$SPIRV_TOOLS_ROOT/include/spirv/spirv.h
$SPIRV_TOOLS_ROOT/include/spirv/GLSL.std.450.h
$SPIRV_TOOLS_ROOT/include/spirv/OpenCL.std.h

A project should use -I$SPIRV_TOOLS_ROOT/include
and then #include "spirv-tools/libspirv.h"

The headers from the SPIR-V Registry can be accessed as "spirv/spirv."
for example.

The install target should also install the headers from the SPIR-V
Registry.  The libspirv.h header is broken otherwise.

The SPIRV-Tools library depends on the headers from the SPIR-V Registry.

The util/bitutils.h and util/hex_float.h are pulled into the internal
source tree.  Those are not part of the public API to SPIRV-Tools.
39 files changed:
CMakeLists.txt
include/spirv-tools/libspirv.h [moved from include/libspirv/libspirv.h with 98% similarity]
include/spirv/GLSL.std.450.h [moved from external/include/headers/GLSL.std.450.h with 100% similarity]
include/spirv/OpenCL.std.h [moved from external/include/headers/OpenCL.std.h with 100% similarity]
include/spirv/spirv.h [moved from external/include/headers/spirv.h with 100% similarity]
include/spirv/spirv.py [moved from external/include/headers/spirv.py with 100% similarity]
source/assembly_grammar.h
source/binary.cpp
source/binary.h
source/diagnostic.cpp
source/diagnostic.h
source/disassemble.cpp
source/ext_inst.h
source/instruction.h
source/opcode.cpp
source/opcode.h
source/operand.h
source/spirv_constant.h
source/spirv_definition.h
source/spirv_endian.h
source/table.h
source/text.cpp
source/text.h
source/text_handler.h
source/util/bitutils.h [moved from include/util/bitutils.h with 100% similarity]
source/util/hex_float.h [moved from include/util/hex_float.h with 99% similarity]
source/validate.cpp
source/validate.h
source/validate_id.cpp
source/validate_layout.cpp
source/validate_types.cpp
test/HexFloat.cpp
test/ImmediateInt.cpp
test/TextToBinary.cpp
test/UnitSPIRV.h
test/ValidationState.cpp
tools/as/as.cpp
tools/dis/dis.cpp
tools/val/val.cpp