node-deps-bullet-raub

0.0.4 • Public • Published

node-deps-bullet

Abstract

Common dependencies for bullet-dependent compilation. +Binaries.

  • Platforms: win x32/x64, linux x32/x64, mac x64.
  • Libraries: bullet.

Install

npm i -s node-deps-bullet-raub

Use

binding.gyp

	'variables': {
		'bullet_include' : '<!(node -e "console.log(require(\'node-deps-bullet-raub\').include)")',
		'bullet_bin'     : '<!(node -e "console.log(require(\'node-deps-bullet-raub\').bin)")',
	},
	...
	'targets': [
		{
			'target_name': '...',
			
			'include_dirs': [
				'<(bullet_include)',
				...
			],
			
			'library_dirs': [ '<(bullet_bin)' ],
			'libraries'    : [ '-lbullet' ],
			
			'conditions': [
				
				['OS=="linux"', {
					'libraries': [
						'-Wl,-rpath,<(bullet_bin)',
					],
				}],
				
				['OS=="mac"', {
					'libraries': [
						'-Wl,-rpath,<(bullet_bin)',
				}],
				
				['OS=="win"', {
					
				}],
				
			],
		},

addon.cpp

#include <...>

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i node-deps-bullet-raub

      Weekly Downloads

      0

      Version

      0.0.4

      License

      MIT

      Last publish

      Collaborators

      • raub-deprecated