File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ configure_file (${CMAKE_SOURCE_DIR}/share/pdf2htmlEX.js.in ${CMAKE_SOURCE_DIR}/s
121
121
set (PDF2HTMLEX_SRC ${PDF2HTMLEX_SRC}
122
122
src/Param.h
123
123
src/pdf2htmlEX.cc
124
+ src/public/pdf2htmlEX.h
124
125
src/pdf2htmlEX-config.h
125
126
src/HTMLRenderer/HTMLRenderer.h
126
127
src/HTMLRenderer/draw.cc
@@ -211,6 +212,9 @@ add_custom_command(OUTPUT
211
212
212
213
install (TARGETS pdf2htmlEX DESTINATION bin )
213
214
215
+ SET (PUBLIC_HEADERS src/public/pdf2htmlEX.h )
216
+ INSTALL (FILES ${PUBLIC_HEADERS} DESTINATION include )
217
+
214
218
set (PDF2HTMLEX_RESOURCE
215
219
${CMAKE_SOURCE_DIR} /3rdparty/PDF.js/compatibility.js
216
220
${CMAKE_SOURCE_DIR} /3rdparty/PDF.js/compatibility.min.js
@@ -247,3 +251,4 @@ configure_file(${CMAKE_SOURCE_DIR}/test/test.py.in ${CMAKE_SOURCE_DIR}/test/test
247
251
include (CTest )
248
252
add_test (test_basic python ${CMAKE_SOURCE_DIR} /test/test_output.py )
249
253
add_test (test_browser python ${CMAKE_SOURCE_DIR} /test/test_local_browser.py )
254
+
Original file line number Diff line number Diff line change 41
41
#include " util/mingw.h"
42
42
#endif
43
43
44
+ #include " public/pdf2htmlEX.h"
45
+
44
46
using namespace std ;
45
47
using namespace pdf2htmlEX ;
46
48
@@ -347,7 +349,7 @@ void check_param()
347
349
}
348
350
}
349
351
350
- int main (int argc, char **argv)
352
+ int pdf2htmlEX_main (int argc, char **argv)
351
353
{
352
354
// We need to adjust these directories before parsing the options.
353
355
#if defined(__MINGW32__)
@@ -444,7 +446,5 @@ int main(int argc, char **argv)
444
446
// Object::memCheck(stderr);
445
447
// gMemReport(stderr);
446
448
447
- exit (finished ? (EXIT_SUCCESS) : (EXIT_FAILURE));
448
-
449
- return 0 ;
449
+ return finished ? EXIT_SUCCESS : EXIT_FAILURE;
450
450
}
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ extern "C" int pdf2htmlEX_main (int argc , char * * argv );
4
+
You can’t perform that action at this time.
0 commit comments