summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/pepper/pepper.js.pri
blob: 43472e3a76946128fd6e6156b01719dc16105ce4 (plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Build libppapi_cpp with source code from the NaCl SDK.
PPAPI_CPP_SOURCE= $$(NACL_SDK_ROOT)/src/ppapi_cpp
SOURCES += \
    $${PPAPI_CPP_SOURCE}/array_output.cc \
    $${PPAPI_CPP_SOURCE}/audio_buffer.cc \
    $${PPAPI_CPP_SOURCE}/audio_config.cc \
    $${PPAPI_CPP_SOURCE}/audio_encoder.cc \
    $${PPAPI_CPP_SOURCE}/audio.cc \
    $${PPAPI_CPP_SOURCE}/compositor_layer.cc \
    $${PPAPI_CPP_SOURCE}/compositor.cc \
    $${PPAPI_CPP_SOURCE}/core.cc \
    $${PPAPI_CPP_SOURCE}/cursor_control_dev.cc \
    $${PPAPI_CPP_SOURCE}/directory_entry.cc \
    $${PPAPI_CPP_SOURCE}/file_chooser_dev.cc \
    $${PPAPI_CPP_SOURCE}/file_io.cc \
    $${PPAPI_CPP_SOURCE}/file_ref.cc \
    $${PPAPI_CPP_SOURCE}/file_system.cc \
    $${PPAPI_CPP_SOURCE}/font_dev.cc \
    $${PPAPI_CPP_SOURCE}/fullscreen.cc \
    $${PPAPI_CPP_SOURCE}/graphics_2d.cc \
    $${PPAPI_CPP_SOURCE}/graphics_3d_client.cc \
    $${PPAPI_CPP_SOURCE}/graphics_3d.cc \
    $${PPAPI_CPP_SOURCE}/host_resolver.cc \
    $${PPAPI_CPP_SOURCE}/image_data.cc \
    $${PPAPI_CPP_SOURCE}/input_event.cc \
    $${PPAPI_CPP_SOURCE}/instance_handle.cc \
    $${PPAPI_CPP_SOURCE}/instance.cc \
    $${PPAPI_CPP_SOURCE}/lock.cc \
    $${PPAPI_CPP_SOURCE}/media_stream_audio_track.cc \
    $${PPAPI_CPP_SOURCE}/media_stream_video_track.cc \
    $${PPAPI_CPP_SOURCE}/memory_dev.cc \
    $${PPAPI_CPP_SOURCE}/message_loop.cc \
    $${PPAPI_CPP_SOURCE}/module.cc \
    $${PPAPI_CPP_SOURCE}/mouse_cursor.cc \
    $${PPAPI_CPP_SOURCE}/mouse_lock.cc \
    $${PPAPI_CPP_SOURCE}/net_address.cc \
    $${PPAPI_CPP_SOURCE}/network_list.cc \
    $${PPAPI_CPP_SOURCE}/network_monitor.cc \
    $${PPAPI_CPP_SOURCE}/network_proxy.cc \
    $${PPAPI_CPP_SOURCE}/paint_aggregator.cc \
    $${PPAPI_CPP_SOURCE}/paint_manager.cc \
    $${PPAPI_CPP_SOURCE}/ppp_entrypoints.cc \
    $${PPAPI_CPP_SOURCE}/printing_dev.cc \
    $${PPAPI_CPP_SOURCE}/rect.cc \
    $${PPAPI_CPP_SOURCE}/resource.cc \
    $${PPAPI_CPP_SOURCE}/scriptable_object_deprecated.cc \
    $${PPAPI_CPP_SOURCE}/simple_thread.cc \
    $${PPAPI_CPP_SOURCE}/tcp_socket.cc \
    $${PPAPI_CPP_SOURCE}/text_input_controller.cc \
    $${PPAPI_CPP_SOURCE}/truetype_font_dev.cc \
    $${PPAPI_CPP_SOURCE}/udp_socket.cc \
    $${PPAPI_CPP_SOURCE}/url_loader.cc \
    $${PPAPI_CPP_SOURCE}/url_request_info.cc \
    $${PPAPI_CPP_SOURCE}/url_response_info.cc \
    $${PPAPI_CPP_SOURCE}/var_array_buffer.cc \
    $${PPAPI_CPP_SOURCE}/var_array.cc \
    $${PPAPI_CPP_SOURCE}/var_dictionary.cc \
    $${PPAPI_CPP_SOURCE}/var.cc \
    $${PPAPI_CPP_SOURCE}/video_decoder.cc \
    $${PPAPI_CPP_SOURCE}/video_encoder.cc \
    $${PPAPI_CPP_SOURCE}/video_frame.cc \
    $${PPAPI_CPP_SOURCE}/view_dev.cc \
    $${PPAPI_CPP_SOURCE}/view.cc \
    $${PPAPI_CPP_SOURCE}/websocket_api.cc \
    $${PPAPI_CPP_SOURCE}/websocket.cc


# libppapi (stub)
SOURCES += \
    $${PWD}/3rdparty/pepper.js/stub.cc
    # rest of libppapi is implemented in JavasScript and added to the build
    # with '--pre-js' at link time.

!emscripten {
# Emscripten provides a better GLES2 API directly than pepper.js
# TODO Consider adding back this when pepper.js has better GLES2 support
# OpenGL
PPAPI_GLES_SOURCE= $$(NACL_SDK_ROOT)/src/ppapi_gles2
SOURCES +=\
    $${PPAPI_GLES_SOURCE}/gles2.c \
    $${PPAPI_GLES_SOURCE}/gl2ext_ppapi.c \

}

OTHER_FILES += \
    $$PWD/3rdparty/pepper.js/audio.js \
    $$PWD/3rdparty/pepper.js/base.js \
    $$PWD/3rdparty/pepper.js/common.js \
    $$PWD/3rdparty/pepper.js/file.js \
    $$PWD/3rdparty/pepper.js/gles.js \
    $$PWD/3rdparty/pepper.js/gles_ext.js \
    $$PWD/3rdparty/pepper.js/graphics_2d.js \
    $$PWD/3rdparty/pepper.js/graphics_3d.js \
    $$PWD/3rdparty/pepper.js/input_events.js \
    $$PWD/3rdparty/pepper.js/loadnacl.js \
    $$PWD/3rdparty/pepper.js/mouse_lock.js \
    $$PWD/3rdparty/pepper.js/ppapi_preamble.js \
    $$PWD/3rdparty/pepper.js/testing.js \
    $$PWD/3rdparty/pepper.js/url_loader.js \
    $$PWD/3rdparty/pepper.js/view.js \
    $$PWD/3rdparty/pepper.js/web_socket.js \
    $$PWD/3rdparty/pepper.js/LICENSE