aboutsummaryrefslogtreecommitdiffstats
path: root/build/platform/perl/perl.inc
blob: 840a19989b632b1be11535c6011d3c96fed490a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
PROVIDES(system_perl) 
 
IF (PERL_SDK == "ubuntu-12") 
    DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_514 sbr:337748278) 
ELSEIF (PERL_SDK == "ubuntu-14") 
    DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_518 sbr:1655582861) 
ELSEIF (PERL_SDK == "ubuntu-16") 
    DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_522 sbr:323251590) 
ELSEIF (PERL_SDK == "ubuntu-18") 
    DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_526 sbr:616700320) 
ELSEIF (PERL_SDK == "ubuntu-20") 
    DECLARE_EXTERNAL_RESOURCE(SYSTEM_PERL_530 sbr:2001114055) 
ELSE() 
    MESSAGE(FATAL_ERROR "Building against system perl is not supported on ${PERL_SDK}") 
ENDIF() 
 
IF (PERL_INCLUDE) 
    CFLAGS(GLOBAL $PERL_INCLUDE) 
ENDIF() 
 
CFLAGS(GLOBAL -I$PERL_ARCHLIB/CORE) 
 
IF (PERL_LIBS) 
    LDFLAGS(-L${PERL_LIBS}) 
ENDIF() 
 
IF (NOT OS_WINDOWS) 
    LDFLAGS(-lperl) 
ELSE() 
    LDFLAGS(perl.lib) 
ENDIF() 
 
CFLAGS(GLOBAL -DUSE_PERL)