SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CFLAGS}")
SET(SOURCES
- src/parser.cc
- src/document.cc
- src/declaration.cc
- src/interface.cc
- src/type.cc
- src/parameter.cc
- src/attribute.cc
- src/structure.cc
- src/block.cc
- src/generator.cc
- src/proxy_gen.cc
- src/stub_gen.cc
- src/main.cc
+ parser.cc
+ document.cc
+ declaration.cc
+ interface.cc
+ type.cc
+ parameter.cc
+ attribute.cc
+ structure.cc
+ block.cc
+ generator.cc
+ proxy_gen.cc
+ stub_gen.cc
+ main.cc
)
-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/inc)
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../)
flex_target(TIDLC ${CMAKE_CURRENT_SOURCE_DIR}/tidlc.ll tidlc_l.cpp)
bison_target(TIDLC ${CMAKE_CURRENT_SOURCE_DIR}/tidlc.yy tidlc_y.cpp)
* limitations under the License.
*/
-#include "attribute.h"
-#include "type.h"
+#include "idlc/attribute.h"
+#include "idlc/type.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_ATTRIBUTE_H_
-#define IDLC_INC_ATTRIBUTE_H_
+#ifndef IDLC_ATTRIBUTE_H_
+#define IDLC_ATTRIBUTE_H_
#include <string>
#include <list>
} // namespace tidl
-#endif // IDLC_INC_ATTRIBUTE_H_
+#endif // IDLC_ATTRIBUTE_H_
* limitations under the License.
*/
-#include "type.h"
-#include "block.h"
+#include "idlc/type.h"
+#include "idlc/block.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_BLOCK_H_
-#define IDLC_INC_BLOCK_H_
+#ifndef IDLC_BLOCK_H_
+#define IDLC_BLOCK_H_
#include <string>
#include <memory>
} // namespace tidl
-#endif // IDLC_INC_BLOCK_H_
+#endif // IDLC_BLOCK_H_
* limitations under the License.
*/
-#include "declaration.h"
-#include "type.h"
-#include "parameter.h"
+#include "idlc/declaration.h"
+#include "idlc/type.h"
+#include "idlc/parameter.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_DECLARATION_H_
-#define IDLC_INC_DECLARATION_H_
+#ifndef IDLC_DECLARATION_H_
+#define IDLC_DECLARATION_H_
#include <string>
#include <list>
#include <memory>
-#include "type.h"
-#include "parameter.h"
+#include "idlc/type.h"
+#include "idlc/parameter.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_DECLARATION_H_
+#endif // IDLC_DECLARATION_H_
* limitations under the License.
*/
-#include "document.h"
-#include "interface.h"
+#include "idlc/document.h"
+#include "idlc/interface.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_DOCUMENT_H_
-#define IDLC_INC_DOCUMENT_H_
+#ifndef IDLC_DOCUMENT_H_
+#define IDLC_DOCUMENT_H_
#include <list>
#include <memory>
-#include "interface.h"
+#include "idlc/interface.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_DOCUMENT_H_
+#endif // IDLC_DOCUMENT_H_
* limitations under the License.
*/
-#include "generator.h"
-#include "block.h"
-#include "interface.h"
-#include "structure.h"
-#include "declaration.h"
+#include "idlc/generator.h"
+#include "idlc/block.h"
+#include "idlc/interface.h"
+#include "idlc/structure.h"
+#include "idlc/declaration.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_GENERATOR_H_
-#define IDLC_INC_GENERATOR_H_
+#ifndef IDLC_GENERATOR_H_
+#define IDLC_GENERATOR_H_
#include <string>
#include <fstream>
#include <iostream>
#include <memory>
-#include "document.h"
-#include "parameter.h"
-#include "type.h"
+#include "idlc/document.h"
+#include "idlc/parameter.h"
+#include "idlc/type.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_GENERATOR_H_
+#endif // IDLC_GENERATOR_H_
* limitations under the License.
*/
-#include "declaration.h"
-#include "interface.h"
-#include "block.h"
+#include "idlc/declaration.h"
+#include "idlc/interface.h"
+#include "idlc/block.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_INTERFACE_H_
-#define IDLC_INC_INTERFACE_H_
+#ifndef IDLC_INTERFACE_H_
+#define IDLC_INTERFACE_H_
#include <string>
#include <memory>
-#include "block.h"
-#include "declaration.h"
+#include "idlc/block.h"
+#include "idlc/declaration.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_INTERFACE_H_
+#endif // IDLC_INTERFACE_H_
#include <iostream>
#include <cstring>
-#include "parser.h"
-#include "proxy_gen.h"
-#include "stub_gen.h"
+#include "idlc/parser.h"
+#include "idlc/proxy_gen.h"
+#include "idlc/stub_gen.h"
namespace {
* limitations under the License.
*/
-#include "parameter.h"
-#include "type.h"
+#include "idlc/parameter.h"
+#include "idlc/type.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_PARAMETER_H_
-#define IDLC_INC_PARAMETER_H_
+#ifndef IDLC_PARAMETER_H_
+#define IDLC_PARAMETER_H_
#include <string>
#include <list>
#include <memory>
-#include "type.h"
+#include "idlc/type.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_PARAMETER_H_
+#endif // IDLC_PARAMETER_H_
#include <fstream>
#include <string>
-#include "parser.h"
-#include "document.h"
-#include "declaration.h"
-#include "parameter.h"
-#include "type.h"
-#include "attribute.h"
-#include "structure.h"
-#include "../tidlc_y.hpp"
+#include "idlc/parser.h"
+#include "idlc/document.h"
+#include "idlc/declaration.h"
+#include "idlc/parameter.h"
+#include "idlc/type.h"
+#include "idlc/attribute.h"
+#include "idlc/structure.h"
+#include "idlc/tidlc_y.hpp"
struct yy_buffer_state;
yy_buffer_state* yy_scan_buffer(char*, size_t, void*);
* limitations under the License.
*/
-#ifndef IDLC_INC_PARSER_H_
-#define IDLC_INC_PARSER_H_
+#ifndef IDLC_PARSER_H_
+#define IDLC_PARSER_H_
#include <memory>
#include <string>
-#include "document.h"
+#include "idlc/document.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_PARSER_H_
+#endif // IDLC_PARSER_H_
* limitations under the License.
*/
-#include "proxy_gen.h"
+#include "idlc/proxy_gen.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_PROXY_GEN_H_
-#define IDLC_INC_PROXY_GEN_H_
+#ifndef IDLC_PROXY_GEN_H_
+#define IDLC_PROXY_GEN_H_
#include <memory>
#include <string>
-#include "generator.h"
+#include "idlc/generator.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_PROXY_GEN_H_
+#endif // IDLC_PROXY_GEN_H_
* limitations under the License.
*/
-#include "attribute.h"
-#include "structure.h"
-#include "block.h"
+#include "idlc/attribute.h"
+#include "idlc/structure.h"
+#include "idlc/block.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_STRUCTURE_H_
-#define IDLC_INC_STRUCTURE_H_
+#ifndef IDLC_STRUCTURE_H_
+#define IDLC_STRUCTURE_H_
#include <string>
#include <memory>
-#include "block.h"
-#include "attribute.h"
+#include "idlc/block.h"
+#include "idlc/attribute.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_STRUCTURE_H_
+#endif // IDLC_STRUCTURE_H_
* limitations under the License.
*/
-#include "stub_gen.h"
+#include "idlc/stub_gen.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_STUB_GEN_H_
-#define IDLC_INC_STUB_GEN_H_
+#ifndef IDLC_STUB_GEN_H_
+#define IDLC_STUB_GEN_H_
#include <memory>
#include <string>
-#include "generator.h"
+#include "idlc/generator.h"
namespace tidl {
} // namespace tidl
-#endif // IDLC_INC_STUB_GEN_H_
+#endif // IDLC_STUB_GEN_H_
%{
#include <stdio.h>
-#include "parser.h"
-#include "document.h"
-#include "declaration.h"
-#include "type.h"
-#include "parameter.h"
-#include "interface.h"
-#include "attribute.h"
-#include "structure.h"
-#include "block.h"
-#include "tidlc_y.hpp"
+#include "idlc/parser.h"
+#include "idlc/document.h"
+#include "idlc/declaration.h"
+#include "idlc/type.h"
+#include "idlc/parameter.h"
+#include "idlc/interface.h"
+#include "idlc/attribute.h"
+#include "idlc/structure.h"
+#include "idlc/block.h"
+#include "idlc/tidlc_y.hpp"
#define YY_USER_ACTION yylloc->columns(yyleng);
%}
#include <stdlib.h>
#include <string.h>
-#include "parser.h"
-#include "document.h"
-#include "declaration.h"
-#include "type.h"
-#include "parameter.h"
-#include "interface.h"
-#include "attribute.h"
-#include "structure.h"
-#include "block.h"
-#include "tidlc_y.hpp"
+#include "idlc/parser.h"
+#include "idlc/document.h"
+#include "idlc/declaration.h"
+#include "idlc/type.h"
+#include "idlc/parameter.h"
+#include "idlc/interface.h"
+#include "idlc/attribute.h"
+#include "idlc/structure.h"
+#include "idlc/block.h"
+#include "idlc/tidlc_y.hpp"
int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *);
* limitations under the License.
*/
-#include "type.h"
+#include "idlc/type.h"
namespace tidl {
* limitations under the License.
*/
-#ifndef IDLC_INC_TYPE_H_
-#define IDLC_INC_TYPE_H_
+#ifndef IDLC_TYPE_H_
+#define IDLC_TYPE_H_
#include <string>
#include <memory>
} // namespace tidl
-#endif // IDLC_INC_TYPE_H_
+#endif // IDLC_TYPE_H_