xLua - Lua C++ API

Check-in [67fcc7c7b0]
Login
Overview
Comment:switch to mk-configure
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:67fcc7c7b04cbdaa92d7477195ab7d93522d91b030695fa38edc774dbb0f71ff
User & Date: xjail 2019-03-18 10:31:15
Context
2019-03-18
11:10
BSD-3-Clause LICENSE Leaf check-in: 22f7da3e3c user: xjail tags: master, trunk
10:31
switch to mk-configure check-in: 67fcc7c7b0 user: xjail tags: master, trunk
2018-07-12
02:21
update check-in: 1152ce8736 user: xjail tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to COPYING.

1

2
3
4
5
6
7
8
9
10
-------------------------------------------------------------------------


Copyright (c) 2018 xjail.tiv.cc
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright

>

|







1
2
3
4
5
6
7
8
9
10
11
-------------------------------------------------------------------------
BSD-3-Clause

Copyright (c) 2018-2019 xjail.tiv.cc
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright

Changes to Makefile.

1

2
3






























4
SUBDIR += src

SUBDIR += examples































.include <bsd.subdir.mk>
<
>
|
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|

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
34

#
# Copyright (c) 2018-2019 xjail.tiv.cc
#

PROJECTNAME = xlua
LIB = xlua

INCSSRCDIR = include

INCS = \
	xlua/c_gate.hpp \
	xlua/debug.hpp \
	xlua/exceptions.hpp \
	xlua/operations.hpp \
	xlua/stack_cleaner.hpp \
	xlua/state.hpp \
	xlua/state.ipp \
	xlua/test_utils.hpp

SRCS = \
	src/c_gate.cpp \
	src/debug.cpp \
	src/exceptions.cpp \
	src/operations.cpp \
	src/stack_cleaner.cpp \
	src/state.cpp

FILES = AUTHORS COPYING INSTALL NEWS README

DOCDIR ?= ${DATADIR}/doc/${PROJECTNAME}
FILESDIR = ${DOCDIR}

.include "config.mk"
.include <mkc.lib.mk>

Deleted compiler.config.

1
2
3
4
5
CXXFLAGS += -std=c++17 -stdlib=libc++
LDFLAGS += -lc++ -lm -lthr -pthread
CC = clang
CXX = clang++
CPP = clang-cpp
<
<
<
<
<










Added config.mk.













































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Copyright (c) 2018-2019 xjail.tiv.cc
#

CC ?= clang
CXX ?= clang++

pkgs = lua-5.3

OS != uname -s

.if "${OS}" == "FreeBSD"
CXXFLAGS += -stdlib=libc++ -std=c++17 `pkgconf --cflags ${pkgs}`
LDFLAGS += -stdlib=libc++ `pkgconf --libs ${pkgs}`
.elif "${OS}" == "NetBSD"
CXXFLAGS += -stdlib=libc++ -std=c++17 `pkgconf --cflags ${pkgs}`
LDFLAGS += -stdlib=libc++ `pkgconf --libs ${pkgs}`
CXXFLAGS += -I/usr/pkg/include -I/usr/pkg/include/c++/v1
LDFLAGS += -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib
.elif "${OS}" == "Minix"
.elif "${OS}" == "OpenBSD"
.endif

Deleted examples/Makefile.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# Copyright (c) 2018 xjail.tiv.cc
#

sources = bindings.cpp hello.cpp interpreter.cpp raii.cpp
.for source in ${sources}
PROGS += ${source:S/.cpp$//1}
.endfor

.for PROG in ${PROGS}
SRCS.${PROG} = ${PROG}.cpp
.endfor

MAN =

CXXFLAGS += -I../include `pkgconf --cflags lua-5.3`
LDFLAGS += -L../src -lxlua `pkgconf --libs lua-5.3`

.include "../compiler.config"
.include <bsd.progs.mk>
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<