Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deps-freeimage-raub

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deps-freeimage-raub

Binaries and headers for FreeImage-dependent compilation

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35
increased by337.5%
Maintainers
1
Weekly downloads
 
Created
Source

FreeImage binaries

This is a part of Node3D project.

NPM

Build Status CodeFactor

npm i deps-freeimage-raub

Synopsis

This dependency package is distributing FreeImage 3.17 binaries through NPM for Node.js addons.

  • Platforms (x64): Windows, Linux, OSX.
  • Library: FreeImage.
  • Linking: static dll-type.

Usage

Example binding.gyp

As in image-raub Node.js addon.

{
	'variables': {
		'bin'        : '<!(node -p "require(\'addon-tools-raub\').bin")',
		'fi_include' : '<!(node -p "require(\'deps-freeimage-raub\').include")',
		'fi_bin'     : '<!(node -p "require(\'deps-freeimage-raub\').bin")',
	},
	'targets': [
		{
			'target_name': 'image',
			'sources': [
				'cpp/bindings.cpp',
				'cpp/image.cpp',
			],
			'include_dirs': [
				'<(fi_include)',
				'<!@(node -p "require(\'addon-tools-raub\').include")',
			],
			'cflags!': ['-fno-exceptions'],
			'cflags_cc!': ['-fno-exceptions'],
			'library_dirs': ['<(fi_bin)'],
			'conditions': [
				[
					'OS=="linux"',
					{
						'libraries': [
							"-Wl,-rpath,'$$ORIGIN'",
							"-Wl,-rpath,'$$ORIGIN/../node_modules/deps-freeimage-raub/<(bin)'",
							"-Wl,-rpath,'$$ORIGIN/../../deps-freeimage-raub/<(bin)'",
							'<(fi_bin)/libfreeimage.so.3',
						],
					}
				],
				[
					'OS=="mac"',
					{
						'libraries': [
							'-Wl,-rpath,@loader_path',
							'-Wl,-rpath,@loader_path/../node_modules/deps-freeimage-raub/<(bin)',
							'-Wl,-rpath,@loader_path/../../deps-freeimage-raub/<(bin)',
							'<(fi_bin)/freeimage.dylib',
						],
						'xcode_settings': {
							'DYLIB_INSTALL_NAME_BASE': '@rpath',
						},
					}
				],
				[
					'OS=="win"',
					{
						'libraries': ['FreeImage.lib'],
						'defines' : [
							'WIN32_LEAN_AND_MEAN',
							'VC_EXTRALEAN'
						],
						'msvs_version'  : '2013',
						'msvs_settings' : {
							'VCCLCompilerTool' : {
								'AdditionalOptions' : [
									'/O2','/Oy','/GL','/GF','/Gm-','/EHsc',
									'/MT','/GS','/Gy','/GR-','/Gd',
								]
							},
							'VCLinkerTool' : {
								'AdditionalOptions' : ['/OPT:REF','/OPT:ICF','/LTCG']
							},
						},
					}
				],
			],
		},
	]
}

addon.cpp

#include <FreeImage.h>

Refer to FreeImage 3.17 docs.

This software uses the FreeImage open source image library. FreeImage is legally used under the FIPL (FreeImage Public License) version. It is explicitly stated that FreeImage can be used commercially under FIPL.

FreeImage licensing information (a COPY) is given in a separate file, which also can be found on FreeImage's official web-site. The rest of this package is MIT licensed.

Windows binaries were found on the official web-site. Unix binaries are found in Ubuntu Packages. OSX binaries are built through MAKE system with Travis CI matrix. See Travis config for details.

Keywords

FAQs

Package last updated on 23 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc