mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Trick swig headers don't make it to the destination directory with make install
Moved the header files and the swig .i files to include/trick/swig. Adjusted the source files and the convert_swig script to find the headers in their new location. refs #67
This commit is contained in:
parent
76756d450a
commit
733d64a250
@ -6,16 +6,16 @@
|
||||
%{
|
||||
#include <iostream>
|
||||
|
||||
#include "trick_swig/swig_int.hh"
|
||||
#include "trick_swig/swig_double.hh"
|
||||
#include "trick_swig/swig_ref.hh"
|
||||
#include "trick_swig/PrimitiveAttributesMap.hh"
|
||||
#include "trick/swig/swig_int.hh"
|
||||
#include "trick/swig/swig_double.hh"
|
||||
#include "trick/swig/swig_ref.hh"
|
||||
#include "trick/swig/PrimitiveAttributesMap.hh"
|
||||
#include "trick/UnitsMap.hh"
|
||||
#include "trick/Unit.hh"
|
||||
#include "trick/reference.h"
|
||||
#include "trick/memorymanager_c_intf.h"
|
||||
|
||||
#include "trick_swig/swig_int_templates.hh"
|
||||
#include "trick/swig/swig_int_templates.hh"
|
||||
|
||||
%}
|
||||
|
@ -5,10 +5,10 @@
|
||||
%include "std_string.i"
|
||||
%include "std_vector.i"
|
||||
|
||||
%include "trick_swig/swig_extend_str.i"
|
||||
%include "trick_swig/swig_class_typedef.i"
|
||||
%include "trick_swig/cast_as.i"
|
||||
%include "trick_swig/swig_int_typemap.i"
|
||||
%include "trick/swig/swig_extend_str.i"
|
||||
%include "trick/swig/swig_class_typedef.i"
|
||||
%include "trick/swig/cast_as.i"
|
||||
%include "trick/swig/swig_int_typemap.i"
|
||||
|
||||
/* SWIG can't understand GNU C keyword "__attribute__" */
|
||||
#ifdef SWIG
|
||||
@ -25,7 +25,6 @@
|
||||
#include "trick/memorymanager_c_intf.h"
|
||||
#include "trick/PythonPrint.hh"
|
||||
|
||||
|
||||
#ifndef SWIG_as_voidptr
|
||||
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
||||
#endif
|
@ -6,7 +6,7 @@
|
||||
|
||||
%inline %{
|
||||
#include "trick/Unit.hh"
|
||||
#include "trick_swig/swig_double.hh"
|
||||
#include "trick/swig/swig_double.hh"
|
||||
%}
|
||||
|
||||
%inline %{
|
@ -444,7 +444,7 @@ sub process_file($$) {
|
||||
print OUT "\%module m$md5_sum\n\n" ;
|
||||
print OUT "/* $in_file */\n" ;
|
||||
|
||||
print OUT "#include \"trick_swig/trick_swig.i\"\n\n" ;
|
||||
print OUT "#include \"trick/swig/trick_swig.i\"\n\n" ;
|
||||
|
||||
print OUT "
|
||||
\%{
|
||||
|
@ -128,7 +128,7 @@ ifeq ($(HAVE_GSL),1)
|
||||
TRICK_EXEC_LINK_LIBS += -lgsl -lgslcblas
|
||||
endif
|
||||
|
||||
TRICK_INCLUDE = $(shell $(PERL) -e '@inc_paths = "${TRICK_CFLAGS}" =~ /-I\s*(\S+)/g ; foreach $$i (@inc_paths) { print "-I$$i "}')
|
||||
TRICK_INCLUDE = $(shell $(PERL) -e '@inc_paths = "${TRICK_CFLAGS}" =~ /-I\s*(\S+)/g ; foreach $$i (@inc_paths) { print "-I$$i " if (-e $$i)}')
|
||||
TRICK_DEFINES = $(shell $(PERL) -e '@defines = "${TRICK_CFLAGS}" =~ /-D\s*(\S+)/g ; foreach $$i (@defines) { print "-D$$i "}')
|
||||
|
||||
IO_SRC_DIR := io_src/
|
||||
|
@ -68,7 +68,7 @@ $(OBJECT_FILES): $(OBJ_DIR)/%.o : %.cpp
|
||||
$(TRICK_CPPC) $(TRICK_CXXFLAGS) -c $< -o $@
|
||||
|
||||
$(SWIG_SRC_FILES): swig_${TRICK_HOST_CPU}/%_wrap.cpp : %.i
|
||||
$(SWIG) $(SWIG_DEFS) -I${TRICK_HOME}/trick_source -I${TRICK_HOME}/include -c++ -python -includeall -ignoremissing -w201,362,389,451 -o $@ -outdir ${TRICK_HOME}/share/trick/swig $<
|
||||
$(SWIG) $(SWIG_DEFS) -I${TRICK_HOME}/trick_source -I${TRICK_HOME}/include -I${TRICK_HOME} -c++ -python -includeall -ignoremissing -w201,362,389,451 -o $@ -outdir ${TRICK_HOME}/share/trick/swig $<
|
||||
|
||||
$(TRICK_LIB) : $(SWIG_OBJECT_FILES) $(OBJECT_FILES)
|
||||
ar crs $@ $?
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
#include <string.h>
|
||||
#include "PrimitiveAttributesMap.hh"
|
||||
#include "trick/swig/PrimitiveAttributesMap.hh"
|
||||
|
||||
// Global instance. This isn't a singleton, but the only one that works with attributes_map.
|
||||
Trick::PrimitiveAttributesMap attr_map ;
|
||||
|
@ -1,11 +1,11 @@
|
||||
|
||||
%module sim_services
|
||||
|
||||
#include "trick_swig/trick_swig.i"
|
||||
#include "trick_swig/units_attach.i"
|
||||
#include "trick_swig/extra_functions.i"
|
||||
#include "trick_swig/swig_class_typedef.i"
|
||||
#include "trick_swig/cast_as.i"
|
||||
#include "trick/swig/trick_swig.i"
|
||||
#include "trick/swig/units_attach.i"
|
||||
#include "trick/swig/extra_functions.i"
|
||||
#include "trick/swig/swig_class_typedef.i"
|
||||
#include "trick/swig/cast_as.i"
|
||||
|
||||
// Special typemap for collectee in add_collect and delete_collect.
|
||||
%typemap(in) void * collectee {
|
||||
@ -26,7 +26,7 @@
|
||||
}
|
||||
|
||||
%inline %{
|
||||
#include "trick_swig/swig_global_vars.hh"
|
||||
#include "trick/swig/swig_global_vars.hh"
|
||||
|
||||
#include "trick/reference_frame.h"
|
||||
#include "trick/rand_generator.h"
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
#include <iostream>
|
||||
#include "trick_swig/swig_macros.hh"
|
||||
#include "trick_swig/swig_double.hh"
|
||||
#include "trick_swig/swig_int.hh"
|
||||
#include "trick_swig/swig_convert_units.hh"
|
||||
#include "trick/swig/swig_macros.hh"
|
||||
#include "trick/swig/swig_double.hh"
|
||||
#include "trick/swig/swig_int.hh"
|
||||
#include "trick/swig/swig_convert_units.hh"
|
||||
|
||||
#include "trick/Unit.hh"
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
%{
|
||||
|
||||
#include "trick_swig/swig_double.hh"
|
||||
#include "trick/swig/swig_double.hh"
|
||||
#include "trick_swig/swig_double.cpp"
|
||||
|
||||
%}
|
||||
|
@ -1,9 +1,9 @@
|
||||
|
||||
#include <iostream>
|
||||
#include "trick_swig/swig_macros.hh"
|
||||
#include "trick_swig/swig_int.hh"
|
||||
#include "trick_swig/swig_double.hh"
|
||||
#include "trick_swig/swig_convert_units.hh"
|
||||
#include "trick/swig/swig_macros.hh"
|
||||
#include "trick/swig/swig_int.hh"
|
||||
#include "trick/swig/swig_double.hh"
|
||||
#include "trick/swig/swig_convert_units.hh"
|
||||
|
||||
#include "trick/Unit.hh"
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
%{
|
||||
|
||||
#include "trick_swig/swig_int.hh"
|
||||
#include "trick/swig/swig_int.hh"
|
||||
#include "trick_swig/swig_int.cpp"
|
||||
|
||||
%}
|
||||
|
@ -5,10 +5,10 @@
|
||||
#include <Python.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "trick_swig/swig_ref.hh"
|
||||
#include "trick_swig/swig_double.hh"
|
||||
#include "trick_swig/swig_int.hh"
|
||||
#include "trick_swig/swig_convert_units.hh"
|
||||
#include "trick/swig/swig_ref.hh"
|
||||
#include "trick/swig/swig_double.hh"
|
||||
#include "trick/swig/swig_int.hh"
|
||||
#include "trick/swig/swig_convert_units.hh"
|
||||
#include "trick/MemoryManager.hh"
|
||||
#include "trick/memorymanager_c_intf.h"
|
||||
#include "trick/PythonPrint.hh"
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
%{
|
||||
|
||||
#include "trick_swig/swig_ref.hh"
|
||||
#include "trick/swig/swig_ref.hh"
|
||||
#include "trick_swig/swig_ref.cpp"
|
||||
|
||||
%}
|
||||
|
Loading…
Reference in New Issue
Block a user