forked from FrontierPsychiatrist/node-spotify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
73 lines (70 loc) · 2.69 KB
/
binding.gyp
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"targets": [
{
"target_name": "nodespotify",
"sources": [
"src/node-spotify.cc", "src/audio/audio.c", "src/audio/AudioHandler.cc",
"src/audio/NodeAudioHandler.cc",
"src/callbacks/PlaylistCallbacksHolder.cc",
"src/callbacks/SessionCallbacks.cc", "src/callbacks/SessionCallbacks_Audio.cc",
"src/callbacks/SearchCallbacks.cc", "src/callbacks/AlbumBrowseCallbacks.cc",
"src/callbacks/ArtistBrowseCallbacks.cc", "src/callbacks/PlaylistContainerCallbacksHolder.cc",
"src/utils/ImageUtils.cc", "src/utils/V8Utils.cc",
"src/objects/spotify/Track.cc", "src/objects/spotify/Artist.cc",
"src/objects/spotify/Playlist.cc", "src/objects/spotify/PlaylistContainer.cc",
"src/objects/spotify/Album.cc", "src/objects/spotify/Search.cc",
"src/objects/spotify/Spotify.cc", "src/objects/spotify/Player.cc",
"src/objects/spotify/PlaylistFolder.cc", "src/objects/spotify/User.cc",
"src/objects/spotify/TrackExtended.cc",
"src/objects/node/NodeTrack.cc", "src/objects/node/NodeArtist.cc",
"src/objects/node/NodePlaylist.cc", "src/objects/node/NodeAlbum.cc",
"src/objects/node/NodePlayer.cc", "src/objects/node/NodeSearch.cc",
"src/objects/node/NodeSpotify.cc", "src/objects/node/NodePlaylistFolder.cc",
"src/objects/node/NodePlaylistContainer.cc", "src/objects/node/NodeUser.cc",
"src/objects/node/NodeTrackExtended.cc"
],
"include_dirs": [
"<!(node -e \"require('nan')\")"
],
"link_settings" : {
"libraries": ["-lspotify"]
},
"copies": [ {
"destination": "<(PRODUCT_DIR)",
"files": ["src/spotify.js", "src/metadataUpdater.js"]
}
],
"variables": {
"native_audio%": 'true'
},
"conditions": [
["OS=='mac'", {
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : ["-std=c++11", "-stdlib=libc++"],
"GCC_ENABLE_CPP_EXCEPTIONS": 'YES',
"MACOSX_DEPLOYMENT_TARGET" : "10.8"
},
"defines": ["OS_OSX"],
}],
[ "OS=='mac' and native_audio=='true'", {
"sources": ["src/audio/openal-audio.c", "src/audio/NativeAudioHandler.cc"],
"link_settings" : { "libraries" : ["-framework", "OpenAL"] },
"defines": ["NODE_SPOTIFY_NATIVE_SOUND"]
}],
["OS=='linux'", {
"cflags_cc": [
"-std=c++11",
"-fexceptions"
],
"defines": ["OS_LINUX"]
}],
[ "OS=='linux' and native_audio=='true'", {
"sources": ["src/audio/alsa-audio.c", "src/audio/NativeAudioHandler.cc"],
"cflags": ["-I/usr/include/alsa"],
"link_settings" : { "libraries" : ["-lasound"] },
"defines": ["NODE_SPOTIFY_NATIVE_SOUND"]
}],
]
}
]
}