PROBE_SCREENSHOT_SRCS = ./probe_screenshot/dacapture_generic.c
+PROBE_SCREENSHOT_LDFLAGS = \
+ -L. \
+ -l:da_probe_tizen.so
+
ifeq ($(TIZEN_FEATURE_WAYLAND),y)
PROBE_EVENT_SRCS += ./probe_event/orientation.c
CFLAGS += -Wno-deprecated-declarations -Wno-unused-const-variable
PROBE_SCREENSHOT_SRCS += ./probe_screenshot/dacapture_wayland.c
PROBE_SCREENSHOT_LDFLAGS += \
- -L. \
-lscreenshooter-client \
-lwayland-tbm-client \
- -lwayland-client \
- -l:da_probe_tizen.so
+ -lwayland-client
else
-L. \
-l:da_probe_tizen.so
-PROBE_SCREENSHOT_LDFLAGS = \
- -L. \
- -l:da_probe_tizen.so
-
$(PROBE_EVENT_TARGET): LDFLAGS+=$(PROBE_EVENT_LDFLAGS)
$(PROBE_EVENT_TARGET): CPPFLAGS+=-DSELF_LIB_NAME="\"/$(INSTALLDIR)/$(PROBE_EVENT_TARGET)\"" -DTIZENAPP $(SWAP_PROBE_DEFS)
$(PROBE_EVENT_TARGET): CPPFLAGS+=$(DEBUG_FLAGS)
}
-int capture_screen_call(void)
-{
- return capture_screen_p ? ((int (*)(void))capture_screen_p)() : -1;
-}
-
void current_angle_set_call(int angle)
{
if (current_angle_set_p != NULL)
dlclose(handle);
}
+
+int capture_screen_call(void)
+{
+ if (capture_screen_p == NULL)
+ load_screenshot_library();
+
+ return capture_screen_p ? ((int (*)(void))capture_screen_p)() : -1;
+}