统一build目录下面的cbp文件

This commit is contained in:
luoliangyi 2022-05-05 14:04:26 +08:00
parent 440424bdaa
commit d4a32f8f62
8 changed files with 464 additions and 0 deletions

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="HGBase" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/HGBase" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../../../release/uos/x86_64/HGBase" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-O2" />
<Add option="-Wall" />
<Add option="-fPIC" />
<Add option="-fvisibility=hidden" />
</Compiler>
<Linker>
<Add option="-lpthread" />
<Add option="-luuid" />
<Add option="-ldl" />
<Add option="-z defs" />
<Add option="-B direct" />
</Linker>
<Unit filename="../../../base/HGBase.h" />
<Unit filename="../../../base/HGBase64.cpp" />
<Unit filename="../../../base/HGBase64.h" />
<Unit filename="../../../base/HGBaseErr.h" />
<Unit filename="../../../base/HGBuffer.cpp" />
<Unit filename="../../../base/HGBuffer.h" />
<Unit filename="../../../base/HGConsole.cpp" />
<Unit filename="../../../base/HGConsole.h" />
<Unit filename="../../../base/HGDef.h" />
<Unit filename="../../../base/HGDes.cpp" />
<Unit filename="../../../base/HGDes.h" />
<Unit filename="../../../base/HGDll.cpp" />
<Unit filename="../../../base/HGDll.h" />
<Unit filename="../../../base/HGEvent.cpp" />
<Unit filename="../../../base/HGEvent.h" />
<Unit filename="../../../base/HGImage.cpp" />
<Unit filename="../../../base/HGImage.h" />
<Unit filename="../../../base/HGInc.h" />
<Unit filename="../../../base/HGInfo.cpp" />
<Unit filename="../../../base/HGInfo.h" />
<Unit filename="../../../base/HGInfoImpl.cpp" />
<Unit filename="../../../base/HGInfoImpl.hpp" />
<Unit filename="../../../base/HGLock.cpp" />
<Unit filename="../../../base/HGLock.h" />
<Unit filename="../../../base/HGLog.cpp" />
<Unit filename="../../../base/HGLog.h" />
<Unit filename="../../../base/HGMd5.cpp" />
<Unit filename="../../../base/HGMd5.h" />
<Unit filename="../../../base/HGThread.cpp" />
<Unit filename="../../../base/HGThread.h" />
<Unit filename="../../../base/HGUtility.cpp" />
<Unit filename="../../../base/HGUtility.h" />
<Unit filename="../../../base/dllmain.cpp" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="HGImgFmt" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/HGImgFmt" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../../../release/uos/x86_64/HGImgFmt" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fPIC" />
<Add option="-fvisibility=hidden" />
<Add directory="../../../third_party/libjpeg/uos/amd64/include" />
<Add directory="../../../third_party/libnsbmp/uos/amd64/include" />
<Add directory="../../../third_party/libpng/uos/amd64/include/libpng16" />
<Add directory="../../../third_party/libtiff/uos/amd64/include" />
<Add directory="../../../third_party/libzip/uos/amd64/include" />
<Add directory="../../../third_party/tinyxml2/uos/amd64/include" />
<Add directory="../../../third_party/pdflib/uos/amd64/include" />
<Add directory="../../../third_party/mupdf/uos/amd64/include" />
</Compiler>
<Linker>
<Add option="-L../../../third_party/libjpeg/uos/amd64/lib -ljpeg" />
<Add option="-L../../../third_party/libnsbmp/uos/amd64/lib -lnsbmp" />
<Add option="-L../../../third_party/libpng/uos/amd64/lib -lpng16" />
<Add option="-L../../../third_party/libtiff/uos/amd64/lib -ltiff" />
<Add option="-L../../../third_party/libzip/uos/amd64/lib -lzip" />
<Add option="-L../../../third_party/tinyxml2/uos/amd64/lib -ltinyxml2" />
<Add option="-L../../../third_party/zlib/uos/amd64/lib -lz" />
<Add option="-L../../../../release/uos/x86_64 -lHGBase -lmupdf -lpdf" />
<Add option="-Wl,--exclude-libs,ALL" />
<Add option="-z defs" />
<Add option="-B direct" />
</Linker>
<Unit filename="../../../imgfmt/HGBmp.cpp" />
<Unit filename="../../../imgfmt/HGBmp.h" />
<Unit filename="../../../imgfmt/HGImgFmt.cpp" />
<Unit filename="../../../imgfmt/HGImgFmt.h" />
<Unit filename="../../../imgfmt/HGImgFmtErr.h" />
<Unit filename="../../../imgfmt/HGJpeg.cpp" />
<Unit filename="../../../imgfmt/HGJpeg.h" />
<Unit filename="../../../imgfmt/HGOfd.cpp" />
<Unit filename="../../../imgfmt/HGOfd.h" />
<Unit filename="../../../imgfmt/HGOfdImpl.cpp" />
<Unit filename="../../../imgfmt/HGOfdImpl.hpp" />
<Unit filename="../../../imgfmt/HGPdf.cpp" />
<Unit filename="../../../imgfmt/HGPdf.h" />
<Unit filename="../../../imgfmt/HGPng.cpp" />
<Unit filename="../../../imgfmt/HGPng.h" />
<Unit filename="../../../imgfmt/HGTiff.cpp" />
<Unit filename="../../../imgfmt/HGTiff.h" />
<Unit filename="../../../utility/HGString.cpp" />
<Unit filename="../../../utility/HGString.h" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="HGImgProc" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/HGImgProc" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../../../release/uos/x86_64/HGImgProc" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fPIC" />
<Add option="-fvisibility=hidden" />
<Add directory="../../../third_party/opencv/uos/amd64/include" />
</Compiler>
<Linker>
<Add option="-L../../../third_party/opencv/uos/amd64/lib" />
<Add option="-lopencv_highgui" />
<Add option="-lopencv_features2d" />
<Add option="-lopencv_imgproc" />
<Add option="-lopencv_core" />
<Add option="-littnotify" />
<Add option="-lzlib" />
<Add option="-L../../../../release/uos/x86_64 -lHGBase" />
<Add option="-ldl" />
<Add option="-lpthread" />
<Add option="-Wl,--exclude-libs,ALL" />
<Add option="-z defs" />
<Add option="-B direct" />
</Linker>
<Unit filename="../../../imgproc/HGImgProc.cpp" />
<Unit filename="../../../imgproc/HGImgProc.h" />
<Unit filename="../../../imgproc/HGImgProcErr.h" />
<Unit filename="../../../imgproc/hg_imageprocess.cpp" />
<Unit filename="../../../imgproc/hg_imageprocess.hpp" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="HGSaneUser" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/HGSaneUser" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/HGSaneUser" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="3" />
<Option compiler="gcc" />
<Option createDefFile="1" />
<Option createStaticLib="1" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fPIC" />
<Add option="-fvisibility=hidden" />
<Add directory="../../../third_party/sane" />
</Compiler>
<Unit filename="../../../sane_user/HGSane.cpp" />
<Unit filename="../../../sane_user/HGSane.h" />
<Unit filename="../../../sane_user/HGSaneErr.h" />
<Unit filename="../../../sane_user/HGSaneImpl.cpp" />
<Unit filename="../../../sane_user/HGSaneImpl.hpp" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -0,0 +1,48 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="HGTest" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/HGTest" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/HGTest" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
</Compiler>
<Linker>
<Add option="-L../../../../release/uos/x86_64" />
<Add option="-lHGBase" />
<Add option="-lHGImgFmt" />
<Add option="-lmupdf" />
<Add option="-lpdf" />
<Add option="-lHGImgProc" />
</Linker>
<Unit filename="main.cpp" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -0,0 +1,32 @@
#include "stdio.h"
#include "../../../../base/HGBase.h"
#include "../../../../imgfmt/HGImgFmt.h"
#include "../../../../imgproc/HGImgProc.h"
int main()
{
HGImage img = NULL;
HGImgFmt_LoadImage("1.pdf", 0, NULL, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_TOP, &img);
HGImgFmt_SaveImage(img, 0, NULL, 0, "pdf2pdf.pdf");
HGBase_DestroyImage(img);
HGImgFmt_LoadImage("1.jpg", 0, NULL, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_TOP, &img);
HGImgFmt_SaveImage(img, 0, NULL, 0, "jpg2pdf.pdf");
HGBase_DestroyImage(img);
HGImgFmt_LoadImage("1.pdf", 0, NULL, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_TOP, &img);
HGImgFmt_SaveImage(img, 0, NULL, 0, "pdf2jpg.jpg");
HGBase_DestroyImage(img);
HGImgFmt_LoadImage("1.bmp", 0, NULL, HGBASE_IMGTYPE_RGB, HGBASE_IMGORIGIN_BOTTOM, &img);
HGImage imgCrop = NULL;
HGImgProc_ImageDeskew(img, HGFALSE, HGFALSE, NULL, 800, 1200, HGBASE_IMGTYPE_BGRA, HGBASE_IMGORIGIN_TOP, &imgCrop);
HGImgFmt_SaveImage(imgCrop, 0, NULL, 0, "deskew.bmp");
HGBase_DestroyImage(imgCrop);
HGBase_DestroyImage(img);
HGBase_WriteInfo(HGBASE_INFOTYPE_DEBUG, "%d", 123456);
HGBase_WriteInfo(HGBASE_INFOTYPE_DESC, "%d", 12345);
return 0;
}

View File

@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="HGWebService" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/HGWebService" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="../../../../release/uos/x86_64/HGWebService" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
<Add directory="../../../third_party/sha1" />
<Add directory="../../../third_party/base64" />
<Add directory="../../../third_party/sane" />
<Add directory="../../../../sdk/include" />
<Add directory="../../../third_party/libzip/uos/amd64/include" />
<Add directory="../../../third_party/json" />
</Compiler>
<Linker>
<Add option="-L../../../../release/uos/x86_64" />
<Add option="-lHGBase" />
<Add option="-lHGImgFmt" />
<Add option="-lmupdf" />
<Add option="-lpdf" />
<Add option="-lsane-hgsane" />
<Add option="-lhgdriver" />
<Add option="-L../../../third_party/libzip/uos/amd64/lib -lzip" />
<Add option="-L../../../third_party/zlib/uos/amd64/lib -lz" />
</Linker>
<Unit filename="../../../sdk/webservice/HttpHead.cpp" />
<Unit filename="../../../sdk/webservice/HttpHead.h" />
<Unit filename="../../../sdk/webservice/HttpUser.cpp" />
<Unit filename="../../../sdk/webservice/HttpUser.h" />
<Unit filename="../../../sdk/webservice/Manager.cpp" />
<Unit filename="../../../sdk/webservice/Manager.h" />
<Unit filename="../../../sdk/webservice/MsgLoop.cpp" />
<Unit filename="../../../sdk/webservice/MsgLoop.h" />
<Unit filename="../../../sdk/webservice/SockIoUser.cpp" />
<Unit filename="../../../sdk/webservice/SockIoUser.h" />
<Unit filename="../../../sdk/webservice/WebMsg.h" />
<Unit filename="../../../sdk/webservice/WebServer.cpp" />
<Unit filename="../../../sdk/webservice/WebServer.h" />
<Unit filename="../../../sdk/webservice/WebUser.cpp" />
<Unit filename="../../../sdk/webservice/WebUser.h" />
<Unit filename="../../../sdk/webservice/WsUser.cpp" />
<Unit filename="../../../sdk/webservice/WsUser.h" />
<Unit filename="../../../sdk/webservice/main.cpp" />
<Unit filename="../../../third_party/base64/base64.cpp" />
<Unit filename="../../../third_party/base64/base64.h" />
<Unit filename="../../../third_party/json/cJSON.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../../../third_party/json/cJSON.h" />
<Unit filename="../../../third_party/sha1/sha1.cpp" />
<Unit filename="../../../third_party/sha1/sha1.h" />
<Unit filename="../../../utility/HGString.cpp" />
<Unit filename="../../../utility/HGString.h" />
<Extensions>
<code_completion />
<debugger />
</Extensions>
</Project>
</CodeBlocks_project_file>

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_workspace_file>
<Workspace title="Workspace">
<Project filename="HGBase/HGBase.cbp" />
<Project filename="HGImgFmt/HGImgFmt.cbp" />
<Project filename="HGImgProc/HGImgProc.cbp" />
<Project filename="HGSaneUser/HGSaneUser.cbp" />
<Project filename="HGTest/HGTest.cbp" />
<Project filename="HGWebService/HGWebService.cbp" />
</Workspace>
</CodeBlocks_workspace_file>