Skip to content

Commit d1ac0e4

Browse files
committed
Move public headers to include/firebird with wrappers in include for legacy files.
1 parent da9238b commit d1ac0e4

File tree

13 files changed

+1337
-1268
lines changed

13 files changed

+1337
-1268
lines changed

builds/install/arch-specific/win32/BuildExecutableInstall.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,6 @@ for %%v in (IPLicense.txt IDPLicense.txt ) do (
397397
:: grab some missing bits'n'pieces from different parts of the source tree
398398
::=========================================================================
399399
@echo Copying ib_util etc
400-
@copy %FB_ROOT_PATH%\src\extlib\ib_util.h %FB_OUTPUT_DIR%\include > nul || (call :ERROR Copying ib_util.h failed. & goto :EOF )
401400
@copy %FB_ROOT_PATH%\src\misc\pascal\ib_util.pas %FB_OUTPUT_DIR%\include > nul || (call :ERROR Copying ib_util.pas failed. & goto :EOF )
402401

403402
@echo Copying other include files required for development...

builds/posix/Makefile.in

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -740,19 +740,13 @@ gbak_files: $(GBAK_FILES)
740740

741741
INCLUDE_DEST= $(FB_BUILD)/include
742742

743-
NEW_INCLUDES_SRC = $(shell find $(SRC_ROOT)/include/firebird -type f)
744-
NEW_INCLUDES_DEST = $(patsubst $(SRC_ROOT)/include/firebird/%, $(INCLUDE_DEST)/firebird/%, $(NEW_INCLUDES_SRC))
745-
746-
include_generic: $(INCLUDE_DEST)/ib_util.h \
747-
$(NEW_INCLUDES_DEST)
748-
749743
# ib_util.h actually is a marker for a number of headers
750744

751745
# Copy all the other headers to the distribution directory. We use
752746
# ib_util.h as the marker for all the files.
753747

754-
OtherDistribHeaders = extlib/ib_util.h \
755-
include/iberror.h \
748+
OtherDistribHeaders = include/ib_util.h \
749+
include/iberror.h \
756750
include/ibase.h
757751

758752
SRC_OtherDistribHeaders = $(addprefix $(SRC_ROOT)/, $(OtherDistribHeaders))
@@ -761,6 +755,11 @@ $(INCLUDE_DEST)/ib_util.h : $(SRC_OtherDistribHeaders)
761755
mkdir -p $(INCLUDE_DEST)
762756
$(CP) $^ $(INCLUDE_DEST)/
763757

758+
NEW_INCLUDES_SRC = $(shell find $(SRC_ROOT)/include/firebird -type f)
759+
NEW_INCLUDES_DEST = $(patsubst $(SRC_ROOT)/include/firebird/%, $(INCLUDE_DEST)/firebird/%, $(NEW_INCLUDES_SRC))
760+
761+
include_generic: $(NEW_INCLUDES_DEST) $(INCLUDE_DEST)/ib_util.h
762+
764763
ifeq ($(SYSTEM_BOOST_FLG),Y)
765764
$(INCLUDE_DEST)/firebird/Message.h : $(SRC_ROOT)/include/firebird/Message.h
766765
sed 's,^#include "\./impl/boost/\(.\+\)",#include <boost/\1>,; s/\bFB_BOOST_PP_/BOOST_PP_/g' $< > $@

builds/win32/make_all.bat

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ for %%v in (gpre_boot build_msg common_test engine_test) do (
9696
)
9797

9898
:: Headers
99-
copy %FB_ROOT_PATH%\src\extlib\ib_util.h %FB_OUTPUT_DIR%\include > nul
10099
copy %FB_ROOT_PATH%\src\include\ibase.h %FB_OUTPUT_DIR%\include > nul
101100
copy %FB_ROOT_PATH%\src\include\iberror.h %FB_OUTPUT_DIR%\include > nul
102101
copy %FB_GEN_DIR%\iberror_c.h %FB_OUTPUT_DIR%\include\firebird\impl > nul

builds/win32/msvc15/ib_util.vcxproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@
192192
<ItemGroup>
193193
<ClCompile Include="..\..\..\src\extlib\ib_util.cpp" />
194194
</ItemGroup>
195-
<ItemGroup>
196-
<ClInclude Include="..\..\..\src\extlib\ib_util.h" />
197-
</ItemGroup>
198195
<ItemGroup>
199196
<ResourceCompile Include="..\..\..\src\jrd\version.rc">
200197
<AdditionalIncludeDirectories Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">..\..\..\src\jrd</AdditionalIncludeDirectories>
@@ -209,4 +206,4 @@
209206
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
210207
<ImportGroup Label="ExtensionTargets">
211208
</ImportGroup>
212-
</Project>
209+
</Project>

builds/win32/msvc15/ib_util.vcxproj.filters

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@
1818
<Filter>EXTLIB files</Filter>
1919
</ClCompile>
2020
</ItemGroup>
21-
<ItemGroup>
22-
<ClInclude Include="..\..\..\src\extlib\ib_util.h">
23-
<Filter>Header files</Filter>
24-
</ClInclude>
25-
</ItemGroup>
2621
<ItemGroup>
2722
<ResourceCompile Include="..\..\..\src\jrd\version.rc">
2823
<Filter>Resource files</Filter>
@@ -31,4 +26,4 @@
3126
<ItemGroup>
3227
<None Include="..\defs\ib_util.def" />
3328
</ItemGroup>
34-
</Project>
29+
</Project>

examples/udf/udflib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
#endif
3636
#include <string.h>
3737
#include <math.h>
38-
#include <ibase.h>
38+
#include "firebird/ibase.h"
3939
#include "example.h"
40-
#include "ib_util.h"
40+
#include "firebird/ib_util.h"
4141

4242
#define BADVAL -9999L
4343
#define MYBUF_LEN 15 /* number of chars to get for */

src/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ set_output_directory (intl intl)
527527
# SHARED LIBRARY ib_util
528528
########################################
529529

530-
add_library (ib_util SHARED extlib/ib_util.cpp extlib/ib_util.h ${VERSION_RC})
530+
add_library (ib_util SHARED extlib/ib_util.cpp ${VERSION_RC})
531531
set_exported_symbols (ib_util ib_util)
532532
set_output_directory_unix (ib_util lib)
533533

@@ -904,7 +904,6 @@ add_custom_target(copy_files
904904
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/examples/stat ${output_dir}/examples/stat
905905
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/examples/functions.c ${output_dir}/examples/functions.c
906906
# headers
907-
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/src/extlib/ib_util.h ${output_dir}/include/ib_util.h
908907
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_SOURCE_DIR}/src/include/gen/iberror.h ${output_dir}/include/iberror.h
909908
)
910909
add_dependencies_cc (copy_files databases)
File renamed without changes.

0 commit comments

Comments
 (0)