| OLD | NEW |
| 1 { | 1 { |
| 2 'TOOLS': ['glibc'], | 2 'TOOLS': ['glibc'], |
| 3 'TARGETS': [ | 3 'TARGETS': [ |
| 4 { | 4 { |
| 5 'NAME': 'dlopen', | 5 'NAME': 'dlopen', |
| 6 'TYPE': 'main', | 6 'TYPE': 'main', |
| 7 'SOURCES': ['dlopen.cc'], | 7 'SOURCES': ['dlopen.cc'], |
| 8 'LIBS': ['nacl_io', 'dl', 'ppapi_cpp', 'ppapi', 'pthread'] | 8 'LIBS': ['nacl_io', 'dl', 'ppapi_cpp', 'ppapi', 'pthread'] |
| 9 }, | 9 }, |
| 10 { | 10 { |
| 11 'NAME' : 'libeightball', | 11 'NAME' : 'libeightball', |
| 12 'TYPE' : 'so', | 12 'TYPE' : 'so', |
| 13 'SOURCES' : ['eightball.cc', 'eightball.h'], | 13 'SOURCES' : ['eightball.cc', 'eightball.h'], |
| 14 'CXXFLAGS': ['-fPIC'], | 14 'CXXFLAGS': ['-fPIC'], |
| 15 'LIBS' : ['ppapi_cpp', 'ppapi', 'pthread'] | 15 'LIBS' : ['ppapi_cpp', 'ppapi', 'pthread'] |
| 16 }, | 16 }, |
| 17 { | 17 { |
| 18 'NAME' : 'libreverse', | 18 'NAME' : 'libreverse', |
| 19 'TYPE' : 'so', | 19 # This .so file is manually loaded by dlopen; we don't want to include it |
| 20 # in the .nmf, or it will be automatically loaded on startup. |
| 21 'TYPE' : 'so-standalone', |
| 20 'SOURCES' : ['reverse.cc', 'reverse.h'], | 22 'SOURCES' : ['reverse.cc', 'reverse.h'], |
| 21 'CXXFLAGS': ['-fPIC'], | 23 'CXXFLAGS': ['-fPIC'], |
| 22 'LIBS' : ['ppapi_cpp', 'ppapi', 'pthread'] | 24 'LIBS' : ['ppapi_cpp', 'ppapi', 'pthread'] |
| 23 } | 25 } |
| 24 ], | 26 ], |
| 25 'DATA': [ | 27 'DATA': [ |
| 26 'example.js', | 28 'example.js', |
| 27 ], | 29 ], |
| 28 'DEST': 'examples', | 30 'DEST': 'examples', |
| 29 'NAME': 'dlopen', | 31 'NAME': 'dlopen', |
| 30 'TITLE': 'Dynamic Library Open', | 32 'TITLE': 'Dynamic Library Open', |
| 31 'DESC': """ | |
| 32 The dlopen example demonstrates how build dynamic libraries and then | |
| 33 open and use them at runtime. When the page loads, type in a question and | |
| 34 hit enter or click the ASK! button. The question and answer will be | |
| 35 displayed in the page under the text entry box. Shared libraries are only | |
| 36 available with the GLIBC toolchain.""", | |
| 37 'FOCUS': 'Using shared objects.', | |
| 38 'GROUP': 'Concepts' | 33 'GROUP': 'Concepts' |
| 39 } | 34 } |
| 40 | 35 |
| OLD | NEW |