Permalink
Browse files

Merge pull request #285 from hnakamur/install_target_for_gyp

Add an install target for the gyp build system.
  • Loading branch information...
2 parents aef0f61 + d33b91b commit e7287cae557de179cfc8ab8df64405fde27ab279 @pquerna pquerna committed Aug 3, 2012
Showing with 95 additions and 0 deletions.
  1. +1 −0 configure
  2. +94 −0 luvit.gyp
View
1 configure
@@ -26,6 +26,7 @@ parser.add_option("--debug",
parser.add_option("--prefix",
action="store",
dest="prefix",
+ default="/usr/local",
help="Select the install prefix (defaults to /usr/local)")
parser.add_option("--arch",
View
94 luvit.gyp
@@ -170,6 +170,100 @@
'defines': [ '_GNU_SOURCE' ]
}],
],
+ },
+ {
+ 'target_name': 'install',
+ 'type': 'none',
+ 'copies': [
+ {
+ 'destination': '<(luvit_prefix)/bin',
+ 'files': [
+ 'out/Debug/luvit'
+ ]
+ },
+ {
+ 'destination': '<(luvit_prefix)/lib/luvit',
+ 'files': [
+ 'lib/luvit/buffer.lua',
+ 'lib/luvit/childprocess.lua',
+ 'lib/luvit/core.lua',
+ 'lib/luvit/dns.lua',
+ 'lib/luvit/fiber.lua',
+ 'lib/luvit/fs.lua',
+ 'lib/luvit/http.lua',
+ 'lib/luvit/https.lua',
+ 'lib/luvit/json.lua',
+ 'lib/luvit/luvit.lua',
+ 'lib/luvit/mime.lua',
+ 'lib/luvit/module.lua',
+ 'lib/luvit/net.lua',
+ 'lib/luvit/path.lua',
+ 'lib/luvit/querystring.lua',
+ 'lib/luvit/repl.lua',
+ 'lib/luvit/stack.lua',
+ 'lib/luvit/timer.lua',
+ 'lib/luvit/tls.lua',
+ 'lib/luvit/url.lua',
+ 'lib/luvit/utils.lua',
+ 'lib/luvit/uv.lua',
+ 'lib/luvit/zlib.lua'
+ ]
+ },
+ {
+ 'destination': '<(luvit_prefix)/include/luvit/luajit',
+ 'files': [
+ 'deps/luajit/src/lua.h',
+ 'deps/luajit/src/lauxlib.h',
+ 'deps/luajit/src/luaconf.h',
+ 'deps/luajit/src/luajit.h',
+ 'deps/luajit/src/lualib.h'
+ ]
+ },
+ {
+ 'destination': '<(luvit_prefix)/include/luvit/http_parser',
+ 'files': [
+ 'deps/http-parser/http_parser.h'
+ ]
+ },
+ {
+ 'destination': '<(luvit_prefix)/include/luvit/uv',
+ 'files': [
+ 'deps/uv/include/'
+ ]
+ },
+ {
+ 'destination': '<(luvit_prefix)/include/luvit',
+ 'files': [
+ 'src/lconstants.h',
+ 'src/lenv.h',
+ 'src/lhttp_parser.h',
+ 'src/los.h',
+ 'src/luv.h',
+ 'src/luv_debug.h',
+ 'src/luv_dns.h',
+ 'src/luv_fs.h',
+ 'src/luv_fs_watcher.h',
+ 'src/luv_handle.h',
+ 'src/luv_misc.h',
+ 'src/luv_pipe.h',
+ 'src/luv_portability.h',
+ 'src/luv_process.h',
+ 'src/luv_stream.h',
+ 'src/luv_tcp.h',
+ 'src/luv_timer.h',
+ 'src/luv_tls.h',
+ 'src/luv_tls_root_certs.h',
+ 'src/luv_tty.h',
+ 'src/luv_udp.h',
+ 'src/luv_zlib.h',
+ 'src/luvit.h',
+ 'src/luvit_exports.h',
+ 'src/luvit_init.h',
+ 'src/lyajl.h',
+ 'src/utils.h'
+ ]
+ }
+ ]
}
],
}

0 comments on commit e7287ca

Please sign in to comment.