grim/guifications3
Clone
Summary
Browse
Changes
Graph
added a macro for adding tests to gflib.cmake (this will need to be made expandable later)
2011-05-17, Gary Kramlich
462fdf322292
added a macro for adding tests to gflib.cmake (this will need to be made expandable later)
moved testing from ctest to part of the normal build
API
=
gflib-sharp-api.xml
RAW_API
=
gflib-sharp-api.raw
ADDITIONAL_API
=
INCLUDE_API
=
METADATA
=
gflib-sharp-api.metadata
ASSEMBLY_NAME
=
gflib-sharp
references
=
-pkg:glib-sharp-2.0
TARGET
=
$(
ASSEMBLY
)
ASSEMBLY
=
$(
ASSEMBLY_NAME
)
.dll
gapidir
=
$(
datadir
)
/gapi
noinst_DATA
=
$(
ASSEMBLY
)
gapi_DATA
=
$(
API
)
$(
ADDITIONAL_API
)
CLEANFILES
=
\
$(
ASSEMBLY
)
\
$(
API
)
\
generated-stamp
\
generated/*.cs
\
glue/generated.c
DISTCLEANFILES
=
AssemblyInfo.cs
sources
=
build_sources
=
$(
addprefix
$(
srcdir
)
/,
$(
sources
))
AssemblyInfo.cs
customs
=
build_customs
=
$(
addprefix
$(
srcdir
)
/,
$(
customs
))
EXTRA_DIST
=
\
AeemblyInfo.cs.in
\
gflib-sharp.snk
\
$(
RAW_API
)
\
$(
METADATA
)
\
$(
customs
)
\
$(
sources
)
$(API)
:
$(
srcdir
)
/
$(
RAW_API
)
$(
srcdir
)
/
$(
METADATA
)
cp
$(
srcdir
)
/
$(
RAW_API
)
$(
API
)
chmod
u+w
$(
API
)
$(
GAPI_FIXUP
)
--api
=
$(
API
)
--metadata
=
$(
srcdir
)
/
$(
METADATA
)
generated-stamp
:
$(
API
)
$(
srcdir
)
/
$(
ADDITIONAL_API
)
$(
build_customs
)
rm
-f
generated/*
&&
\
$(
GAPI_CODEGEN
)
--generate
$(
API
)
\
--include
$(
INCLUDE_API
)
--outdir
=
generated
--customdir
=
$(
srcdir
)
--assembly-name
=
$(
ASSEMBLY_NAME
)
\
&&
touch
generated-stamp
$(ASSEMBLY)
:
$(
build_sources
)
generated
-
stamp
gflib
-
sharp
.
snk
$(
CSC
)
/unsafe
/out:
$(
ASSEMBLY
)
/target:library
$(
references
)
$(
build_sources
)
$(
GENERATED_SOURCES
)
install-data-local
:
@if
test
-n
'$(TARGET)'
;
then
echo
"
$(
GACUTIL
)
/i
$(
ASSEMBLY
)
/f
$(
GACUTIL_FLAGS
)
"
;
\
$(
GACUTIL
)
/i
$(
ASSEMBLY
)
/f
$(
GACUTIL_FLAGS
)
||
exit
1
;
\
fi
uninstall-local
:
@if
test
-n
'$(TARGET)'
;
then
\
echo
"
$(
GACUTIL
)
/u
$(
ASSEMBLY_NAME
)
$(
GACUTIL_FLAGS
)
"
;
\
$(
GACUTIL
)
/u
$(
ASSEMBLY_NAME
)
$(
GACUTIL_FLAGS
)
||
exit
1
;
\
fi