Line | |
---|
1 | ;; -*- scheme -*- |
---|
2 | |
---|
3 | (define leptonica-test-code |
---|
4 | "#include \"allheaders.h\"\nint main() {return 0;}\n") |
---|
5 | |
---|
6 | (define include-options |
---|
7 | (cond ((try-compile leptonica-test-code) |
---|
8 | "") |
---|
9 | ((try-compile leptonica-test-code cflags: "-I/usr/include/leptonica") |
---|
10 | "-I/usr/include/leptonica") |
---|
11 | ((try-compile leptonica-test-code cflags: "-I/ur/include/liblept") |
---|
12 | "-I/usr/include/liblept") |
---|
13 | (else |
---|
14 | (error "Unable to figure out location of leptonica's headers.")))) |
---|
15 | |
---|
16 | (compile -s -O3 -d1 ,include-options "leptonica.scm" -j leptonica -llept -ljpeg -lpng -ltiff) |
---|
17 | (compile -c -O3 -d1 ,include-options "leptonica.scm" -unit lepontica -llept -ljpeg -lpng -ltiff) |
---|
18 | (compile -s -O3 -d0 ,include-options "leptonica.import.scm" -llept -ljpeg -lpng -ltiff) |
---|
19 | |
---|
20 | (install-extension |
---|
21 | 'leptonica |
---|
22 | '("leptonica.o" "leptonica.so" "leptonica.import.so") |
---|
23 | '((version "0.3") |
---|
24 | (static "leptonica.o"))) |
---|
Note: See
TracBrowser
for help on using the repository browser.