From: nibha.sharma Date: Wed, 11 Jan 2017 10:24:17 +0000 (+0530) Subject: [TBT][widget][Non-ACR][DPTTIZEN-2736, Added Multiclass widget Testcases] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7f84891d865b03f3ce0c5433b07f216a7b8365b;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][widget][Non-ACR][DPTTIZEN-2736, Added Multiclass widget Testcases] Change-Id: Icd5170ea370ad702eec71cd02584714f92e93bbb Signed-off-by: nibha.sharma --- diff --git a/multiclass/.cproject b/multiclass/.cproject new file mode 100755 index 0000000..97f41da --- /dev/null +++ b/multiclass/.cproject @@ -0,0 +1,628 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/multiclass/.exportMap b/multiclass/.exportMap new file mode 100755 index 0000000..43e310e --- /dev/null +++ b/multiclass/.exportMap @@ -0,0 +1,4 @@ +{ + global: main; + local: *; +}; diff --git a/multiclass/.package-stamp b/multiclass/.package-stamp new file mode 100755 index 0000000..40cbe59 --- /dev/null +++ b/multiclass/.package-stamp @@ -0,0 +1 @@ +TPK \ No newline at end of file diff --git a/multiclass/.project b/multiclass/.project new file mode 100755 index 0000000..ff51542 --- /dev/null +++ b/multiclass/.project @@ -0,0 +1,46 @@ + + + multiclass + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + + 1483675463268 + + 26 + + org.eclipse.ui.ide.multiFilter + 1.0-projectRelativePath-matches-false-false-*/.tpk + + + + 1483675463271 + + 6 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-project_def.prop + + + + diff --git a/multiclass/.sign/.manifest.tmp b/multiclass/.sign/.manifest.tmp new file mode 100755 index 0000000..64b8d34 --- /dev/null +++ b/multiclass/.sign/.manifest.tmp @@ -0,0 +1,5 @@ +bin/multiclass__DEL__ViNYbBlUwX3VYa1rLvNudnhPYTiU2h0vMZsp95zKXsY= +shared/res/icon.png__DEL__1d0oEZHqPn+QzNzGIHwj9ODby6x9ggFs9uOsav6jPNs= +shared/res/preview.png__DEL__w+bDVZb7alEr+4UlIf3dJAMO2z/mALyj4CnSy54OeYk= +tizen-manifest.xml__DEL__dVDwbdR6Dfj4w7v9i7+FzT/ppCuoxHOXKPPNZl0YKjo= +author-signature.xml__DEL__/HolHdyw6cHFeMNAntqX6sZieSHFnreddaQP1rIQkUY= diff --git a/multiclass/.sign/author-signature.xml b/multiclass/.sign/author-signature.xml new file mode 100755 index 0000000..fa61e40 --- /dev/null +++ b/multiclass/.sign/author-signature.xml @@ -0,0 +1,70 @@ + + + + + + +ViNYbBlUwX3VYa1rLvNudnhPYTiU2h0vMZsp95zKXsY= + + + +1d0oEZHqPn+QzNzGIHwj9ODby6x9ggFs9uOsav6jPNs= + + + +w+bDVZb7alEr+4UlIf3dJAMO2z/mALyj4CnSy54OeYk= + + + +dVDwbdR6Dfj4w7v9i7+FzT/ppCuoxHOXKPPNZl0YKjo= + + + + + + +lpo8tUDs054eLlBQXiDPVDVKfw30ZZdtkRs1jd7H5K8= + + + +MBKqUA4tGTbv+GJv8V2pyZ3dh/vgUU2NbTBKCxH0svEJWhJWvUd9s/eHwnOXHaMe2kon5soqmH/2 +Akw/E1fsxcQKb6MiDZDPsEUmeTU9TV7CXfsuFpw2vVd3631qHtp+xTq4h56DmoHqGEZutsAh/b7D +zbVLyAzL6z5pNjRdOuY= + + + + +MIICkzCCAXugAwIBAgIGAVd6XnOBMA0GCSqGSIb3DQEBBQUAMFYxGjAYBgNVBAoMEVRpemVuIEFz +c29jaWF0aW9uMRowGAYDVQQLDBFUaXplbiBBc3NvY2lhdGlvbjEcMBoGA1UEAwwTVGl6ZW4gRGV2 +ZWxvcGVycyBDQTAeFw0xMjExMDEwMDAwMDBaFw0xOTAxMDEwMDAwMDBaMA8xDTALBgNVBAMMBGFh +YTIwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJvSLW/KBEpBVyghUQAPOpEUHiaaNGR/AAib +BEw5/P0sER8MhIDZuON54brKH82x7bVEWlcNQwS2wuH+X6UWZcZkuUDbII0FvotS6uXhVZumbTO6 +wb+MmKe+h/NOgskOvftnI3FoZy+VanQoB2zGGuYUlDEJldDWJXBpvAXoqokHAgMBAAGjMjAwMAwG +A1UdEwEB/wQCMAAwCwYDVR0PBAQDAgeAMBMGA1UdJQQMMAoGCCsGAQUFBwMDMA0GCSqGSIb3DQEB +BQUAA4IBAQAeuXcHEiTKqqmX0Esi4R+sFtCeqDim/DrXkS3kAxf22yliEZxaR8CSugvYURJcUoWO +5B/j9m83gDEmCAODuMJ2DLsnb/ams1zs05NlxzbkTec/Ggte4ZUJ2AoG0Tv4QPLmYu4FcVxnifNs +EOA2FMcuSvULarP4jg/DqdhdYd62i4H4sUuARJ+VUfmQxnrT/Ie36v1RAn3KD8fI9wOaIv+28MRh +avn1LN2FF6CtXaNajso8hsHKP/v8m6oXynUeniF+9X9xLnzCplpqYDaEzwfTYB+NiMZy6LCnecsw +PEQ1/Ae4cX57GAAhcmRpLHLEXOfsmJDU+jrS8QCR1Gekoff8 + + +MIIDOTCCAiGgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMRowGAYDVQQKDBFUaXplbiBBc3NvY2lh +dGlvbjEaMBgGA1UECwwRVGl6ZW4gQXNzb2NpYXRpb24xHjAcBgNVBAMMFVRpemVuIERldmVsb3Bl +cnMgUm9vdDAeFw0xMjAxMDEwMDAwMDBaFw0yNzAxMDEwMDAwMDBaMFYxGjAYBgNVBAoMEVRpemVu +IEFzc29jaWF0aW9uMRowGAYDVQQLDBFUaXplbiBBc3NvY2lhdGlvbjEcMBoGA1UEAwwTVGl6ZW4g +RGV2ZWxvcGVycyBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANVGhRGmMIUyBA7o +PCz8Sxut6z6HNkF4oDIuzuKaMzRYPeWodwe9O0gmqAkToQHfwg2giRhE5GoPld0fq+OYMMwSasCu +g8dwODx1eDeSYVuOLWRxpAmbTXOsSFi6VoWeyaPEm18JBHvZBsU5YQtgZ6Kp7MqzvQg3pXOxtajj +vyHxiatJl+xXrHgcXC1wgyG3buty7u/Fi2mvKXJ0PRJcCjjK81dqe/Vr20sRUCrbk02zbm5ggFt/ +jIEhV8wbFRQpliobc7J4dSTKhFfrqGM8rdd54LYhD7gSI1CFSe16pUXfcVR7FhJztRaiGLnCrwBE +dyTZ248+D4L/qR/D0axb3jcCAwEAAaMQMA4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOC +AQEAnOXXQ/1O/QTDHyrmQDtFziqPY3xWlJBqJtEqXiT7Y+Ljpe66e+Ee/OjQMlZe8gu21/8cKklH +95RxjopMWCVedXDUbWdvS2+CdyvVW/quT2E0tjqIzXDekUTYwwhlPWlGxvfj3VsxqSFq3p8Brl04 +1Gx5RKAGyKVsMfTLhbbwSWwApuBUxYfcNpKwLWGPXkysu+HctY03OKv4/xKBnVWiN8ex/Sgesi0M ++OBAOMdZMPK32uJBTeKFx1xZgTLIhk45V0hPOomPjZloiv0LSS11eyd451ufjW0iHRE7WlpR6EvI +W6TFyZgMpQq+kg4hWl2SBTf3s2VI8Ygz7gj8TMlClg== + + + + + \ No newline at end of file diff --git a/multiclass/.sign/signature1.xml b/multiclass/.sign/signature1.xml new file mode 100755 index 0000000..a5c3603 --- /dev/null +++ b/multiclass/.sign/signature1.xml @@ -0,0 +1,72 @@ + + + + + + +/HolHdyw6cHFeMNAntqX6sZieSHFnreddaQP1rIQkUY= + + + +ViNYbBlUwX3VYa1rLvNudnhPYTiU2h0vMZsp95zKXsY= + + + +1d0oEZHqPn+QzNzGIHwj9ODby6x9ggFs9uOsav6jPNs= + + + +w+bDVZb7alEr+4UlIf3dJAMO2z/mALyj4CnSy54OeYk= + + + +dVDwbdR6Dfj4w7v9i7+FzT/ppCuoxHOXKPPNZl0YKjo= + + + + + + +u/jU3U4Zm5ihTMSjKGlGYbWzDfRkGphPPHx3gJIYEJ4= + + + +PIdJNVBmMQ+hHq3RPuLbjaitghZIzErUsQ99z74BlldVFLM1fmScbdXIiLLy7aUsUILExQCBwYNz +pDpf2zByZbC6asod5NlyFNc4azs1w4GGM727K6GF8lTRzYFavYmDI3gG5DURJLDEIkURXJ/qhivS +jV4QLsDTmtA3gAXK2F4= + + + + +MIICmzCCAgQCCQDXI7WLdVZwiTANBgkqhkiG9w0BAQUFADCBjzELMAkGA1UEBhMCS1IxDjAMBgNV +BAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6ZW4gVGVzdCBDQTEiMCAGA1UE +CwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwbVGl6ZW4gUHVibGljIERpc3Ry +aWJ1dG9yIENBMB4XDTEyMTAyOTEzMDMwNFoXDTIyMTAyNzEzMDMwNFowgZMxCzAJBgNVBAYTAktS +MQ4wDAYDVQQIDAVTdXdvbjEOMAwGA1UEBwwFU3V3b24xFjAUBgNVBAoMDVRpemVuIFRlc3QgQ0Ex +IjAgBgNVBAsMGVRpemVuIERpc3RyaWJ1dG9yIFRlc3QgQ0ExKDAmBgNVBAMMH1RpemVuIFB1Ymxp +YyBEaXN0cmlidXRvciBTaWduZXIwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALtMvlc5hENK +90ZdA+y66+Sy0enD1gpZDBh5T9RP0oRsptJv5jjNTseQbQi0SZOdOXb6J7iQdlBCtR343RpIEz8H +mrBy7mSY7mgwoU4EPpp4CTSUeAuKcmvrNOngTp5Hv7Ngf02TTHOLK3hZLpGayaDviyNZB5PdqQdB +hokKjzAzAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAvGp1gxxAIlFfhJH1efjb9BJK/rtRkbYn9+Ez +GEbEULg1svsgnyWisFimI3uFvgI/swzr1eKVY3Sc8MQ3+Fdy3EkbDZ2+WAubhcEkorTWjzWz2fL1 +vKaYjeIsuEX6TVRUugHWudPzcEuQRLQf8ibZWjbQdBmpeQYBMg5x+xKLCJc= + + +MIICtDCCAh2gAwIBAgIJAMDbehElPNKvMA0GCSqGSIb3DQEBBQUAMIGVMQswCQYDVQQGEwJLUjEO +MAwGA1UECAwFU3V3b24xDjAMBgNVBAcMBVN1d29uMRYwFAYDVQQKDA1UaXplbiBUZXN0IENBMSMw +IQYDVQQLDBpUVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEpMCcGA1UEAwwgVGl6ZW4gUHVibGlj +IERpc3RyaWJ1dG9yIFJvb3QgQ0EwHhcNMTIxMDI5MTMwMjUwWhcNMjIxMDI3MTMwMjUwWjCBjzEL +MAkGA1UEBhMCS1IxDjAMBgNVBAgMBVN1d29uMQ4wDAYDVQQHDAVTdXdvbjEWMBQGA1UECgwNVGl6 +ZW4gVGVzdCBDQTEiMCAGA1UECwwZVGl6ZW4gRGlzdHJpYnV0b3IgVGVzdCBDQTEkMCIGA1UEAwwb +VGl6ZW4gUHVibGljIERpc3RyaWJ1dG9yIENBMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDe +OTS/3nXvkDEmsFCJIvRlQ3RKDcxdWJJp625pFqHdmoJBdV+x6jl1raGK2Y1sp2Gdvpjc/z92yzAp +bE/UVLPh/tRNZPeGhzU4ejDDm7kzdr2f7Ia0U98K+OoY12ucwg7TYNItj9is7Cj4blGfuMDzd2ah +2AgnCGlwNwV/pv+uVQIDAQABoxAwDjAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4GBACqJ +KO33YdoGudwanZIxMdXuxnnD9R6u72ltKk1S4zPfMJJv482CRGCI4FK6djhlsI4i0Lt1SVIJEed+ +yc3qckGm19dW+4xdlkekon7pViEBWuyHw8OWv3RXtTum1+PGHjBJ2eYY4ZKIpz73U/1NC16sTB/0 +VhfnkHwPltmrpYVe + + + + + \ No newline at end of file diff --git a/multiclass/.tproject b/multiclass/.tproject new file mode 100755 index 0000000..56660b2 --- /dev/null +++ b/multiclass/.tproject @@ -0,0 +1,12 @@ + + + + + mobile-3.0 + + + + + + + diff --git a/multiclass/Debug/.ninja_deps b/multiclass/Debug/.ninja_deps new file mode 100755 index 0000000..8df5f5d Binary files /dev/null and b/multiclass/Debug/.ninja_deps differ diff --git a/multiclass/Debug/.ninja_log b/multiclass/Debug/.ninja_log new file mode 100755 index 0000000..c04f136 --- /dev/null +++ b/multiclass/Debug/.ninja_log @@ -0,0 +1,7 @@ +# ninja log v5 +0 292 0 src/multiclass.o 4ad6edf98c21c79f +293 387 0 multiclass ba8bd956e8f302d3 +2 269 0 src/multiclass.o ee633537d4c7347b +269 364 0 multiclass c4155229d0b685ca +1 250 0 src/multiclass.o ee633537d4c7347b +250 346 0 multiclass c4155229d0b685ca diff --git a/multiclass/Debug/build.ninja b/multiclass/Debug/build.ninja new file mode 100755 index 0000000..ed966f4 --- /dev/null +++ b/multiclass/Debug/build.ninja @@ -0,0 +1,26 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +ninja_required_version = 1.5 +include rules.ninja +include target.ninja + +shell = +builddir = ../Debug +sareportdir = ../SA_Report +sa_checkers = alpha,cplusplus,core,deadcode,resourceLeak,security,unix +coveragedir = ../Coverage_Report + +subninja ../Debug/src/subdir.ninja + +targettool = clang++ +targetflags = -L"../lib" -target arm-tizen-linux-gnueabi -gcc-toolchain /home/hyunho/tizen-studio/tools/arm-linux-gnueabi-gcc-4.9/ -ccc-gcc-name arm-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mtune=cortex-a8 -Xlinker --as-needed -pie -lpthread --sysroot="/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core" -Xlinker --version-script="../.exportMap" -L"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/lib" -lBrokenLocale -laccounts-svc -lanl -lappcore-agent -lattach-panel -lbadge -lbase-utils-i18n -lbundle -lcairo -lcalendar-service2 -lcapi-appfw-alarm -lcapi-appfw-app-common -lcapi-appfw-app-control -lcapi-appfw-application -lcapi-appfw-app-manager -lcapi-appfw-event -lcapi-appfw-package-manager -lcapi-appfw-preference -lcapi-appfw-widget-application -lcapi-base-common -lcapi-content-media-content -lcapi-content-mime-type -lcapi-geofence-manager -lcapi-location-manager -lcapi-maps-service -lcapi-media-audio-io -lcapi-media-camera -lcapi-media-codec -lcapi-media-controller -lcapi-mediademuxer -lcapi-media-image-util -lcapi-media-metadata-editor -lcapi-media-metadata-extractor -lcapi-mediamuxer -lcapi-media-player -lcapi-media-radio -lcapi-media-recorder -lcapi-media-screen-mirroring -lcapi-media-sound-manager -lcapi-media-streamer -lcapi-media-streamrecorder -lcapi-media-thumbnail-util -lcapi-media-tone-player -lcapi-media-tool -lcapi-media-video-util -lcapi-media-vision -lcapi-media-wav-player -lcapi-messaging-email -lcapi-messaging-messages -lcapi-network-bluetooth -lcapi-network-connection -lcapi-network-http -lcapi-network-mtp -lcapi-network-nfc -lcapi-network-smartcard -lcapi-network-wifi-manager -lcapi-network-wifi -lcapi-system-device -lcapi-system-info -lcapi-system-media-key -lcapi-system-runtime-info -lcapi-system-sensor -lcapi-system-system-settings -lcapi-system-usbhost -lcapi-telephony -lcapi-ui-efl-util -lcapi-ui-inputmethod-manager -lcapi-ui-inputmethod -lcapi-vpnsvc -lcapi-web-url-download -lcbhm -lchromium-ewk -lcidn -lcontacts-service2 -lcontext -lcore-context-manager -lcore-sync-client -lcrypto -lcrypt -lc -lcsr-client -lcurl -ld2d-conv-manager -ldali-adaptor -ldali-core -ldali-toolkit -ldata-control -ldlog -ldl -ldpm -lebluez -leconnman0_7x -lecore_buffer -lecore_con -lecore_evas -lecore_file -lecore_imf_evas -lecore_imf -lecore_input_evas -lecore_input -lecore_ipc -lecore -ledbus -ledje -leet -lefl-extension -lefreet_mime -lefreet -lefreet_trash -lehal -leina -leio -leldbus -lelementary -lembryo -lenotify -leofono -leom -leo -lethumb_client -lethumb -leukit -levas -lexif -lfeedback -lfido-client -lfontconfig -lfreetype -lgio-2.0 -lglib-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lharfbuzz-icu -lharfbuzz -liotcon -ljson-glib-1.0 -lkey-manager-client -lmessage-port -lminicontrol-provider -lminicontrol-viewer -lminizip -lm -lnotification -lnsd-dns-sd -lnsd-ssdp -lnsl -lnss_compat -lnss_dns -lnss_files -lnss_hesiod -lnss_nisplus -lnss_nis -loauth2 -loauth -lopenal -lphonenumber-utils -lprivilege-info -lpthread -lpush -lresolv -lrt -lservice-adaptor-client -lshortcut -lsqlite3 -lssl -lstorage -lstt_engine -lstt -ltbm -lthread_db -lttrace -ltts_engine -ltts -ltzsh_common -ltzsh_quickpanel -lui-viewmgr -lutil -lvc-elm -lvc -lwidget_service -lwidget_viewer_dali -lwidget_viewer_evas -lwifi-direct -lxml2 -lyaca -lz -Werror-implicit-function-declaration + +build multiclass: build_target src/multiclass.o +build ast: phony src/multiclass.o.ast +build externalFnMap.txt: fast_ext_fn src/multiclass.o.ast +build sa: phony $sareportdir/src/multiclass.o.xml +build apichecker: unusedapi_rule src/multiclass.o.txt +build cov: cov_report $coveragedir/src/multiclass.o.cov + diff --git a/multiclass/Debug/compile_commands.json b/multiclass/Debug/compile_commands.json new file mode 100755 index 0000000..e76134c --- /dev/null +++ b/multiclass/Debug/compile_commands.json @@ -0,0 +1,5 @@ +[ + { "directory": "../Debug", + "command": "clang -DTIZEN_DEPRECATION -DDEPRECATION_WARNING -I\"../inc\" -O0 -g3 -Wall -c -fmessage-length=0 -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/libxml2\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/EGL\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/GLES\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/GLES2\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/GLES3\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/KHR\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/SDL2\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/appcore-agent\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/appfw\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/attach-panel\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/badge\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/base\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/cairo\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/calendar-service2\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/cbhm\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/chromium-ewk\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ckm\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/contacts-svc\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/content\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/context-service\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/csr\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dali\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dali-toolkit\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dbus-1.0\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/device\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dlog\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-buffer-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-con-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-evas-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-file-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-imf-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-imf-evas-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-input-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-input-evas-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-ipc-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ector-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/e_dbus-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/edje-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eet-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/efl-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/efl-extension\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/efreet-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eina-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eina-1/eina\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eio-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eldbus-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/elementary-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/embryo-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/emile-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eo-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eom\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ethumb-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ethumb-client-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/evas-1\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/feedback\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/fontconfig\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/freetype2\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/geofence\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/gio-unix-2.0\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/glib-2.0\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/harfbuzz\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/iotcon\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/json-glib-1.0\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/location\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/maps\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/media\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/media-content\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/messaging\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/metadata-editor\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/minicontrol\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/minizip\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/network\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/notification\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/nsd/\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/phonenumber-utils\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/sensor\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/service-adaptor\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/shortcut\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/storage\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/system\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/telephony\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/tzsh\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ui\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ui-viewmgr\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/vulkan\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/web\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/widget_service\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/widget_viewer_dali\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/widget_viewer_evas\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/wifi-direct\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/yaca\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/lib/dbus-1.0/include\" -I\"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/lib/glib-2.0/include\" $(TC_COMPILER_MISC) $(RS_COMPILER_MISC) -fPIE --sysroot=\"$(SBI_SYSROOT)\" -mthumb -Werror-implicit-function-declaration \"../src/multiclass.c\"", + "file": "../src/multiclass.c" }, +] diff --git a/multiclass/Debug/multiclass b/multiclass/Debug/multiclass new file mode 100755 index 0000000..c56254f Binary files /dev/null and b/multiclass/Debug/multiclass differ diff --git a/multiclass/Debug/org.example.multiclass-1.0.0-arm.tpk b/multiclass/Debug/org.example.multiclass-1.0.0-arm.tpk new file mode 100755 index 0000000..cfb6292 Binary files /dev/null and b/multiclass/Debug/org.example.multiclass-1.0.0-arm.tpk differ diff --git a/multiclass/Debug/org.example.multiclass-1.0.0-x86.tpk b/multiclass/Debug/org.example.multiclass-1.0.0-x86.tpk new file mode 100755 index 0000000..d7c0144 Binary files /dev/null and b/multiclass/Debug/org.example.multiclass-1.0.0-x86.tpk differ diff --git a/multiclass/Debug/rules.ninja b/multiclass/Debug/rules.ninja new file mode 100755 index 0000000..0c31705 --- /dev/null +++ b/multiclass/Debug/rules.ninja @@ -0,0 +1,321 @@ +################################################################################# +# C/ CPP Compilation Rules +################################################################################# + +rule build_c + command = $ctool -MMD -MT $out -MF $out.d $pchInc $cflags $otherflags -c $in -o $out + description = Building $out + depfile = $out.d + deps = gcc + +rule build_long_c + command = $ctool -MMD -MT $out -MF $out.d @$out.rsp -c $in -o $out + description = Building $out + depfile = $out.d + deps = gcc + rspfile = $out.rsp + rspfile_content = $pchInc $cflags + +rule build_cpp + command = $cpptool -MMD -MT $out -MF $out.d $pchInc $cppflags $otherflags -c $in -o $out + description = Building $out + depfile = $out.d + +rule build_long_cpp + command = $cpptool -MMD -MT $out -MF $out.d @$out.rsp -c $in -o $out + description = Building $out + depfile = $out.d + rspfile = $out.rsp + rspfile_content = $pchInc $cppflags + +################################################################################# +# Unsupported Compilation Rules +################################################################################# + +rule build_unsupported + command = echo "Ignoring unsupported extension" + description = Building $in not supported + +rule build_long_unsupported + command = echo "Ignoring unsupported extension" + description = Building $in not supported + + +################################################################################# +# Link Rules +################################################################################# + +rule build_target + command = $targettool -o $out $in $userobj $libs $targetflags $otherflags + description = Linking $out + +rule build_long_target + command = $targettool -o $out @$out.rsp + description = Linking $out + rspfile = $out.rsp + rspfile_content = $in $userobj $libs $targetflags + +build main-build: phony all + +################################################################################# +# Prebuild/ Postbuild Rules +################################################################################# + +rule pre_build + command = $bashshell $prebuildcmd + description = Executing Prebuild Steps + pool = console + +rule post_build + command = $bashshell $postbuildcmd + description = Executing Postbuild Steps + pool = console + +rule build_pch + command = $pchtool -x c-header -MMD -MT $out -MF $out.d $pchflags -c $in -o $out + description = Building $out + depfile = $out.d + +rule build_long_pch + command = $pchtool -x c-header -MMD -MT $out -MF $out.d $pchflags -c $in -o $out + description = Building $out + depfile = $out.d + rspfile = $out.rsp + rspfile_content = $pchflags + +build pre-build: pre_build +build post-build: post_build | main_build + +################################################################################# +# Secondary Output Rules +################################################################################# + +rule build_edc + command = $edctool $edje-cc-dep-options $edcflags $in $out + description = Building $out + depfile = $out.d + deps = gcc + +rule build_long_edc + command = $edctool $edje-cc-dep-options @$out.rsp $in $out + description = Building $out + depfile = $out.d + deps = gcc + rspfile = $out.rsp + rspfile_content = $edcflags + +rule build_po + command = $potool -o $out $in + description = Building $out + +rule build_long_po + command = $potool -o $out @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $in + + +################################################################################# +# APIChecker Rules +################################################################################# + +rule build_c_api + command = APIChecker $apichecker-options $in -o $out -- $pchInc $cflags -w -fretain-comments-from-system-headers + description = Building $out + +rule build_long_c_api + command = APIChecker $apichecker-options $in -o $out -- @$out.rsp -w -fretain-comments-from-system-headers + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cflags + +rule build_cpp_api + command = APIChecker $apichecker-options $in -o $out -- $pchInc $cppflags -w -fretain-comments-from-system-headers + description = Building $out + +rule build_long_cpp_api + command = APIChecker $apichecker-options $in -o $out -- @$out.rsp -w -fretain-comments-from-system-headers + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cppflags + +################################################################################# +# APIChecker Unused Privilege Rules +################################################################################# + +rule unusedapi_rule + command = APIChecker -o $out $in $apichecker-misc-options $apichecker-options -- + description = Running Unused Privilege Check $out + +################################################################################# +# AST Rules +################################################################################# + +rule build_c_ast + command = $ctool -emit-ast -c $in -o $out $pchInc $cflags + description = Building $out + +rule build_long_c_ast + command = $ctool -emit-ast -c $in -o $out @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cflags + +rule build_cpp_ast + command = $cpptool -emit-ast -c $in -o $out $pchInc $cppflags + description = Building $out + +rule build_long_cpp_ast + command = $cpptool -emit-ast -c $in -o $out @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cppflags + +################################################################################# +# FN Map Rules +################################################################################# + +rule build_c_fn + command = clangFnMapGen -o $out -ast $in $in -- + description = Building $out + +rule build_long_c_fn + command = clangFnMapGen -o $out -ast $in $in -- + description = Building $out + +rule build_cpp_fn + command = clangFnMapGen -o $out -ast $in $in -- + description = Building $out + +rule build_long_cpp_fn + command = clangFnMapGen -o $out -ast $in $in -- + description = Building $out + +rule ext_fn + command = $shell cat $in > $sareportdir/externalFnMap.txt + description = Generating External Function Map + pool = console + +rule fast_ext_fn + command = clangFnMapGen -o $out $in -- + description = Generating External Function Map + pool = console + +################################################################################# +# SA Rules +################################################################################# + +rule build_c_sa + command = $ctool --analyze --analyzer-no-default-checks $in -Xclang -analyzer-purge=block -Xclang -analyzer-checker=$sa_checkers -o $sareportdir $pchInc $cflags + description = Building $out + +rule build_long_c_sa + command = $ctool --analyze --analyzer-no-default-checks $in -Xclang -analyzer-purge=block -Xclang -analyzer-checker=$sa_checkers -o $sareportdir @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cflags + +rule build_cpp_sa + command = $cpptool --analyze --analyzer-no-default-checks $in -Xclang -analyzer-purge=block -Xclang -analyzer-checker=$sa_checkers -o $sareportdir $pchInc $cppflags + description = Building $out + +rule build_long_cpp_sa + command = $cpptool --analyze --analyzer-no-default-checks $in -Xclang -analyzer-purge=block -Xclang -analyzer-checker=$sa_checkers -o $sareportdir @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cppflags + +################################################################################# +# FAST AST Rules +################################################################################# + +rule build_c_fast_ast + command = $ctool -emit-ast -Xclang -fmust-emit-func-decls -c $in -o $out $pchInc $cflags + description = Building $out + +rule build_long_c_fast_ast + command = $ctool -emit-ast -Xclang -fmust-emit-func-decls -c $in -o $out @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cflags + +rule build_cpp_fast_ast + command = $cpptool -emit-ast -Xclang -fmust-emit-func-decls -c $in -o $out $pchInc $cppflags + description = Building $out + +rule build_long_cpp_fast_ast + command = $cpptool -emit-ast -Xclang -fmust-emit-func-decls -c $in -o $out @$out.rsp + description = Building $out + rspfile = $out.rsp + rspfile_content = $pchInc $cppflags + +################################################################################# +# FAST SA Rules +################################################################################# + +ast_deps_prefix = Importing AST for File: +rule build_c_fast_sa + command = $ctool --analyze --analyzer-no-default-checks $in -Xanalyzer -analyzer-purge=block -Xanalyzer -analyzer-checker=$sa_checkers -Xanalyzer -emit-ast-deps -o $out + description = Analyzing $in + deps = ast + +rule build_long_c_fast_sa + command = $ctool --analyze --analyzer-no-default-checks $in -Xanalyzer -analyzer-purge=block -Xanalyzer -analyzer-checker=$sa_checkers -Xanalyzer -emit-ast-deps -o $out + description = Analyzing $in + deps = ast + +rule build_cpp_fast_sa + command = $cpptool --analyze --analyzer-no-default-checks $in -Xanalyzer -analyzer-purge=block -Xanalyzer -analyzer-checker=$sa_checkers -Xanalyzer -emit-ast-deps -o $out + description = Analyzing $in + deps = ast + +rule build_long_cpp_fast_sa + command = $cpptool --analyze --analyzer-no-default-checks $in -Xanalyzer -analyzer-purge=block -Xanalyzer -analyzer-checker=$sa_checkers -Xanalyzer -emit-ast-deps -o $out + description = Analyzing $in + deps = ast + +################################################################################# +# Coverage Rules +################################################################################# + +rule build_cov + command = llvm-cov show $binaryName -instr-profile=coverage.profdata $in -outfile=$out + description = Generating coverage file $out + +rule cov_report + command = llvm-cov report $binaryName -tizen-cov -instr-profile=coverage.profdata ../src/* -outfile=$coveragedir/report.txt + description = Generating coverage report $out + + +################################################################################# +# Clean Rules +################################################################################# + +rule clean_all + command = ninja -t clean + description = Cleaning build files ... +build clean: clean_all || clean_sa + +rule sa_report_clean + command = rm -rf $sareportdir/*.xml rm -rf $sareportdir/src + description = Cleaning SA Report files .. + +build clean_sa: sa_report_clean + +rule cov_report_clean + command = rm -rf $coveragedir/src rm -rf $coveragedir/report.txt + description = Cleaning Coverage Reports.. + +build clean_cov: cov_report_clean + +################################################################################# +# Compilation DB Step +################################################################################# + +rule compdb_json + command = $shell ninja -t compdb cc cxx > $out + description = Generating $out +build $builddir/compile_commands.json: compdb_json +build compdb: phony $builddir/compile_commands.json + + diff --git a/multiclass/Debug/src/multiclass.o b/multiclass/Debug/src/multiclass.o new file mode 100755 index 0000000..a5fd17e Binary files /dev/null and b/multiclass/Debug/src/multiclass.o differ diff --git a/multiclass/Debug/src/subdir.ninja b/multiclass/Debug/src/subdir.ninja new file mode 100755 index 0000000..c2ff56a --- /dev/null +++ b/multiclass/Debug/src/subdir.ninja @@ -0,0 +1,13 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + + +ctool = clang +cflags = -DTIZEN_DEPRECATION -DDEPRECATION_WARNING -I"../inc" -O0 -g3 -Wall -c -fmessage-length=0 -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/libxml2" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/EGL" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/GLES" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/GLES2" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/GLES3" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/KHR" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/SDL2" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/appcore-agent" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/appfw" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/attach-panel" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/badge" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/base" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/cairo" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/calendar-service2" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/cbhm" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/chromium-ewk" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ckm" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/contacts-svc" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/content" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/context-service" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/csr" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dali" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dali-toolkit" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dbus-1.0" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/device" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/dlog" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-buffer-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-con-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-evas-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-file-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-imf-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-imf-evas-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-input-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-input-evas-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ecore-ipc-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ector-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/e_dbus-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/edje-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eet-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/efl-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/efl-extension" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/efreet-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eina-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eina-1/eina" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eio-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eldbus-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/elementary-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/embryo-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/emile-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eo-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/eom" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ethumb-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ethumb-client-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/evas-1" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/feedback" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/fontconfig" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/freetype2" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/geofence" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/gio-unix-2.0" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/glib-2.0" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/harfbuzz" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/iotcon" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/json-glib-1.0" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/location" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/maps" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/media" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/media-content" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/messaging" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/metadata-editor" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/minicontrol" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/minizip" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/network" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/notification" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/nsd/" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/phonenumber-utils" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/sensor" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/service-adaptor" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/shortcut" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/storage" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/system" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/telephony" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/tzsh" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ui" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/ui-viewmgr" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/vulkan" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/web" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/widget_service" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/widget_viewer_dali" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/widget_viewer_evas" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/wifi-direct" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/include/yaca" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/lib/dbus-1.0/include" -I"/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core/usr/lib/glib-2.0/include" -target arm-tizen-linux-gnueabi -gcc-toolchain /home/hyunho/tizen-studio/tools/arm-linux-gnueabi-gcc-4.9/ -ccc-gcc-name arm-linux-gnueabi-g++ -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mtune=cortex-a8 -Wno-gnu -fPIE --sysroot="/home/hyunho/tizen-studio/tools/smart-build-interface/../../platforms/tizen-3.0/mobile/rootstraps/mobile-3.0-device.core" -mthumb -Werror-implicit-function-declaration + +build src/multiclass.o: build_c ../src/multiclass.c +build src/multiclass.o.ast: build_c_fast_ast ../src/multiclass.c +build $sareportdir/src/multiclass.o.xml: build_c_fast_sa src/multiclass.o.ast || externalFnMap.txt +build src/multiclass.o.txt: build_c_api ../src/multiclass.c +build $coveragedir/src/multiclass.o.cov: build_cov ../src/multiclass.c diff --git a/multiclass/Debug/target.ninja b/multiclass/Debug/target.ninja new file mode 100755 index 0000000..6f28e12 --- /dev/null +++ b/multiclass/Debug/target.ninja @@ -0,0 +1,5 @@ +build main_build: phony multiclass +build all: phony main_build +default all +edje-cc-dep-options = -deps $out.d +binaryName = multiclass diff --git a/multiclass/inc/multiclass.h b/multiclass/inc/multiclass.h new file mode 100755 index 0000000..3b07fd4 --- /dev/null +++ b/multiclass/inc/multiclass.h @@ -0,0 +1,18 @@ +#ifndef __multiclass_H__ +#define __multiclass_H__ + +#include +#include +#include +#include + +#ifdef LOG_TAG +#undef LOG_TAG +#endif +#define LOG_TAG "multiclass" + +#if !defined(PACKAGE) +#define PACKAGE "org.example.multiclass" +#endif + +#endif /* __multiclass_H__ */ diff --git a/multiclass/project_def.prop b/multiclass/project_def.prop new file mode 100755 index 0000000..98b0a89 --- /dev/null +++ b/multiclass/project_def.prop @@ -0,0 +1,11 @@ +APPNAME = multiclass + +type = app +profile = mobile-3.0 + +USER_SRCS = src/multiclass.c +USER_DEFS = +USER_INC_DIRS = inc +USER_OBJS = +USER_LIBS = +USER_EDCS = diff --git a/multiclass/shared/res/icon.png b/multiclass/shared/res/icon.png new file mode 100755 index 0000000..9765b1b Binary files /dev/null and b/multiclass/shared/res/icon.png differ diff --git a/multiclass/shared/res/preview.png b/multiclass/shared/res/preview.png new file mode 100755 index 0000000..acf5670 Binary files /dev/null and b/multiclass/shared/res/preview.png differ diff --git a/multiclass/src/multiclass.c b/multiclass/src/multiclass.c new file mode 100755 index 0000000..5085c65 --- /dev/null +++ b/multiclass/src/multiclass.c @@ -0,0 +1,123 @@ +#include +#include "multiclass.h" + +typedef struct widget_instance_data { + Evas_Object *win; + Evas_Object *conform; + Evas_Object *label; +} widget_instance_data_s; + +static int widget_instance_create(widget_context_h context, bundle *content, int w, int h, void *user_data) +{ + widget_instance_data_s *wid = (widget_instance_data_s *)calloc(1, sizeof(widget_instance_data_s)); + int ret; + + dlog_print(DLOG_DEBUG, LOG_TAG, "id: %s", widget_app_get_id(context)); + + /* window */ + ret = widget_app_get_elm_win(context, &wid->win); + if (ret != WIDGET_ERROR_NONE) { + dlog_print(DLOG_ERROR, LOG_TAG, "failed to get window. err = %d", ret); + return WIDGET_ERROR_FAULT; + } + + evas_object_resize(wid->win, w, h); + + /* conformant */ + wid->conform = elm_conformant_add(wid->win); + evas_object_size_hint_weight_set(wid->conform, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(wid->win, wid->conform); + evas_object_show(wid->conform); + + Evas_Object *rect; + rect = evas_object_rectangle_add(evas_object_evas_get(wid->win)); + evas_object_resize(rect, w, h); + evas_object_move(rect, 0, 0); + evas_object_color_set(rect, 100, 100, 100, 255); + evas_object_show(rect); + + /* label */ + wid->label = elm_label_add(wid->conform); + evas_object_resize(wid->label, w, h / 3); + evas_object_move(wid->label, w / 4, h / 3); + evas_object_show(wid->label); + elm_object_text_set(wid->label, widget_app_get_id(context)); + + evas_object_show(wid->win); +} + +static int widget_instance_destroy(widget_context_h context, widget_app_destroy_type_e reason, bundle *content, void *user_data) +{ + widget_instance_data_s *wid = NULL; + widget_app_context_get_tag(context, (void **)&wid); + + if (wid && wid->win) + evas_object_del(wid->win); + + free(wid); + + return WIDGET_ERROR_NONE; +} + +static int widget_instance_pause(widget_context_h context, void *user_data) +{ + return WIDGET_ERROR_NONE; +} + +static int widget_instance_resume(widget_context_h context, void *user_data) +{ + return WIDGET_ERROR_NONE; +} + +static int widget_instance_update(widget_context_h context, bundle *content, int force, void *user_data) +{ + return WIDGET_ERROR_NONE; +} + +static int widget_instance_resize(widget_context_h context, int w, int h, void *user_data) +{ + return WIDGET_ERROR_NONE; +} + +static widget_class_h widget_app_create(void *user_data) +{ + widget_instance_lifecycle_callback_s ops = { + .create = widget_instance_create, + .destroy = widget_instance_destroy, + .pause = widget_instance_pause, + .resume = widget_instance_resume, + .update = widget_instance_update, + .resize = widget_instance_resize, + }; + + widget_class_h widget = NULL; + widget = widget_app_class_add(widget, "org.example.multiclass", ops, user_data); + widget = widget_app_class_add(widget, "class2@org.example.multiclass", ops, user_data); + widget = widget_app_class_add(widget, "class3@org.example.multiclass", ops, user_data); + + return widget; +} + +static void widget_app_terminate(void *user_data) +{ + /* release resources */ +} + +int main(int argc, char *argv[]) +{ + widget_app_lifecycle_callback_s ops = {0,}; + int ret; + + ops.create = widget_app_create; + ops.terminate = widget_app_terminate; + + ret = widget_app_main(argc, argv, &ops, NULL); + if (ret != WIDGET_ERROR_NONE) { + dlog_print(DLOG_ERROR, LOG_TAG, "widget_app_main() is failed. err = %d", ret); + } + + return ret; +} + + + diff --git a/multiclass/tizen-manifest.xml b/multiclass/tizen-manifest.xml new file mode 100755 index 0000000..1f55ef3 --- /dev/null +++ b/multiclass/tizen-manifest.xml @@ -0,0 +1,15 @@ + + + + + + 4x2 + + 4x4 + + + 4x2 + 4x4 + + + diff --git a/tbtcoreapp/inc/model/tbt-info.h b/tbtcoreapp/inc/model/tbt-info.h old mode 100644 new mode 100755 index bf1e9b5..a34d425 --- a/tbtcoreapp/inc/model/tbt-info.h +++ b/tbtcoreapp/inc/model/tbt-info.h @@ -304,8 +304,9 @@ typedef enum { TBT_APP_DALI_SCROLL, - TBT_APP_DALI_WIDGET + TBT_APP_DALI_WIDGET, + TBT_APP_MULTICLASS //TBT_APP_DALI_SCROLL_BAR } tbt_app_type_e; diff --git a/tbtcoreapp/inc/utils/app_module_config.h b/tbtcoreapp/inc/utils/app_module_config.h index 419d160..2f2d3b7 100755 --- a/tbtcoreapp/inc/utils/app_module_config.h +++ b/tbtcoreapp/inc/utils/app_module_config.h @@ -298,5 +298,6 @@ //#define TBT_MODULE_APP_DALI_STYLE_MANAGER //#define TBT_MODULE_APP_DALI_TEXT_EDITOR //#define TBT_MODULE_APP_DALI_SLIDER - +#define TBT_MODULE_MULTICLASS +#define TBT_MODULE_APP_MULTICLASS #endif diff --git a/tbtcoreapp/inc/view/tbt-multiclass-view.h b/tbtcoreapp/inc/view/tbt-multiclass-view.h new file mode 100755 index 0000000..99a4de5 --- /dev/null +++ b/tbtcoreapp/inc/view/tbt-multiclass-view.h @@ -0,0 +1,54 @@ +/******************************************************************************* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *******************************************************************************/ +/** + * @file tbt-multiclass-view.h + * @brief This view provide the Apps tested the multiclass widget functionality. + * @since_tizen 3.0 + * @author Nibha Sharma (nibha.sharma@samsung.com) + * @date January, 2017 + * @bug No known bug. + * @credit Tizen Application framework Example + * + */ + +#ifndef __TBT_MULTICLASS_VIEW_H__ +#define __TBT_MULTICLASS_VIEW_H__ + +#include "utils/app_module_config.h" +#ifdef TBT_MODULE_MULTICLASS + +#include +#include "model/tbt-list.h" + +/** + * @typedef _multiclass_view + * @since_tizen 3.0 + * @brief A multiclass viewer view handle. + */ +typedef struct _multiclass_view multiclass_view; + +/** + * @brief Create multiclass_view_add + * @since_tizen 3.0 + * @param[in] navi Parent naviframe + * @param[in] tbt_info Custom struct contains all the necessary information of the moduales + * @param[in] item Is the selected item of the Application home genlist + * @return Pointer of multiclass_view on success, otherwise NULL + */ +multiclass_view *multiclass_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item); + +#endif +#endif // __TBT_MULTICLASS_VIEW_H__ diff --git a/tbtcoreapp/res/edje/3.0/mobile/multiclass_viewer.edc b/tbtcoreapp/res/edje/3.0/mobile/multiclass_viewer.edc new file mode 100755 index 0000000..7239020 --- /dev/null +++ b/tbtcoreapp/res/edje/3.0/mobile/multiclass_viewer.edc @@ -0,0 +1,54 @@ +/* + * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#define TEXT_HEIGHT 0.08 +#define CONTENT_X_PAD 0.15 + +collections +{ + base_scale: 1.8; + group + { + name: "multiclass_viewer"; + parts{ + part{ + name: "multiclass_text"; + type: SWALLOW; + description{ + state: "default" 0.0; + align: 0.0 0.0; + visible: 1; + rel1 {relative: 0.0 0.0; } + rel2 {relative: 1.0 TEXT_HEIGHT; } + } + } + + part { name: "controlr_part"; + type: SWALLOW; + description { + state: "default" 0.0; + rel1 { + relative: 0.0 0.9; + } + rel2 { + relative: 1.0 1.0; + } + visible: 1; + } + } + } + } +} diff --git a/tbtcoreapp/res/edje/3.0/mobile/multiclass_viewer.edj b/tbtcoreapp/res/edje/3.0/mobile/multiclass_viewer.edj new file mode 100644 index 0000000..d8acbb8 Binary files /dev/null and b/tbtcoreapp/res/edje/3.0/mobile/multiclass_viewer.edj differ diff --git a/tbtcoreapp/src/model/tbt-list.c b/tbtcoreapp/src/model/tbt-list.c index 0a96066..9cef15b 100755 --- a/tbtcoreapp/src/model/tbt-list.c +++ b/tbtcoreapp/src/model/tbt-list.c @@ -2802,9 +2802,22 @@ static tbt_info tbtapps[] = .info = "DALi Widget Functionality", .result = 0, .required_features_count = 0 - } + }, #endif +#endif +#ifdef TBT_MODULE_MULTICLASS + #ifdef TBT_MODULE_APP_MULTICLASS + //MULTICLASS Test + { + .name = "Multiclass Widget App", + .parent = "Multiclass Widget", + .apptype = TBT_APP_MULTICLASS, + .icon_name = "dummy", + .info = "1. Please install multiclass org.example.multiclass tpk file
2. Click View Widget UI button
3.Multiple Widget class app gets launched.
4.Please refer info section", + .result = 0 + } + #endif #endif }; diff --git a/tbtcoreapp/src/view/tbt-genlist-view.c b/tbtcoreapp/src/view/tbt-genlist-view.c old mode 100644 new mode 100755 index 010d771..b88b7c7 --- a/tbtcoreapp/src/view/tbt-genlist-view.c +++ b/tbtcoreapp/src/view/tbt-genlist-view.c @@ -100,6 +100,7 @@ #include "view/tbt-iotcon-view.h" #include "view/tbt-ui-viewmgr-view.h" #include "view/tbt-dali-view.h" +#include "view/tbt-multiclass-view.h" typedef struct { @@ -1246,7 +1247,11 @@ static void _gl_item_selected_cb(void *data, Evas_Object *obj EINA_UNUSED, void dali_view_add(view->navi, info, it, "TBT_APP_DALI_WIDGET"); break; #endif - + #ifdef TBT_MODULE_MULTICLASS + case TBT_APP_MULTICLASS: + multiclass_view_add(view->navi, info, it); + break; + #endif default: assert(false); break; diff --git a/tbtcoreapp/src/view/tbt-multiclass-view.c b/tbtcoreapp/src/view/tbt-multiclass-view.c new file mode 100755 index 0000000..ef7a332 --- /dev/null +++ b/tbtcoreapp/src/view/tbt-multiclass-view.c @@ -0,0 +1,206 @@ +/******************************************************************************* + * Copyright (c) 2014 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + *******************************************************************************/ +/** + * @file tbt-multiclass-view.c + * @brief This view provide the Apps tested the multiclass widget functionality. + * @author Nibha Sharma (nibha.sharma@samsung.com) + * @date January, 2017 + * @bug No known bug. + * @credit Tizen Application framework Example + * + */ + +#include "utils/app_module_config.h" +#ifdef TBT_MODULE_MULTICLASS + +#include "utils/logger.h" +#include "utils/config.h" +#include "utils/ui-utils.h" +#include "view/tbt-multiclass-view.h" +#include "view/tbt-common-view.h" + +struct _multiclass_view +{ + common_view* view; + Evas_Object *label; + Evas_Object* btn_multiclass_app; + app_control_h service; +}; + + +static Evas_Object *add_control_layout(multiclass_view *this, Evas_Object *parent); +static void _app_destroy_cb(void* this); +static void multiclass_app_launch_button_pressed_cb(void *data, Evas_Object *obj, void *event_info); +static void app_control_view_reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *data); + +static char* get_app_control_error(int ret) +{ + char* error = NULL; + + switch (ret) { + case APP_CONTROL_ERROR_NONE: + error = "APP_CONTROL_ERROR_NONE"; + break; + case APP_CONTROL_ERROR_INVALID_PARAMETER: + error = "APP_CONTROL_ERROR_INVALID_PARAMETER"; + break; + case APP_CONTROL_ERROR_OUT_OF_MEMORY: + error = "APP_CONTROL_ERROR_OUT_OF_MEMORY"; + break; + case APP_CONTROL_ERROR_APP_NOT_FOUND: + error = "APP_CONTROL_ERROR_APP_NOT_FOUND"; + break; + case APP_CONTROL_ERROR_KEY_NOT_FOUND: + error = "APP_CONTROL_ERROR_KEY_NOT_FOUND"; + break; + case APP_CONTROL_ERROR_KEY_REJECTED: + error = "APP_CONTROL_ERROR_KEY_REJECTED"; + break; + case APP_CONTROL_ERROR_INVALID_DATA_TYPE: + error = "APP_CONTROL_ERROR_INVALID_DATA_TYPE"; + break; + case APP_CONTROL_ERROR_LAUNCH_REJECTED: + error = "APP_CONTROL_ERROR_LAUNCH_REJECTED"; + break; + case APP_CONTROL_ERROR_PERMISSION_DENIED: + error = "APP_CONTROL_ERROR_PERMISSION_DENIED"; + break; + case APP_CONTROL_ERROR_LAUNCH_FAILED: + error = "APP_CONTROL_ERROR_LAUNCH_FAILED"; + break; + case APP_CONTROL_ERROR_TIMED_OUT: + error = "APP_CONTROL_ERROR_TIMED_OUT"; + break; +#ifdef TIZEN_3_0 + case APP_CONTROL_ERROR_IO_ERROR: + error = "APP_CONTROL_ERROR_IO_ERROR"; + break; +#endif +#ifdef TIZEN_2_4 + case APP_CONTROL_ERROR_IO_ERROR: + error = "APP_CONTROL_ERROR_IO_ERROR"; + break; +#endif + default: + error = "Unknown Error"; + break; + } + return error; +} + +multiclass_view *multiclass_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item) +{ + RETVM_IF(NULL == navi, NULL, "navi is null"); + + multiclass_view *this = NULL; + this = calloc(1, sizeof(multiclass_view)); + RETVM_IF(!this, NULL, "calloc failed"); + + this->view = calloc(1, sizeof(common_view)); + RETVM_IF(!this->view, NULL, "calloc failed"); + + + tbt_info->layout_group = "multiclass_viewer"; + tbt_info->layout_file = get_edje_path("multiclass_viewer.edj"); + + common_view_add(navi, tbt_info, item, this->view, _app_destroy_cb, this); + RETVM_IF(NULL == this->view, NULL, "navi is null"); + + this->label = ui_utils_label_add(this->view->layout, ""); + RETVM_IF(!this->label, NULL, "ui_utils_label_add failed"); + ui_utils_label_set_text(this->label, "press button to launch app", "left"); + elm_object_part_content_set(this->view->layout, "multiclass_text", this->label); + + Evas_Object *control = add_control_layout(this, this->view->layout); + elm_object_part_content_set(this->view->layout, "controlr_part", control); + + return this; +} + +static Evas_Object *add_control_layout(multiclass_view *this, Evas_Object *parent) +{ + RETVM_IF(NULL == this, NULL, "view is NULL"); + this->btn_multiclass_app = ui_utils_push_button_add(this, parent, "View Widget UI", multiclass_app_launch_button_pressed_cb); + + return this->btn_multiclass_app ; +} + +static void multiclass_app_launch_button_pressed_cb(void *data, Evas_Object *obj, void *event_info) +{ + RETM_IF(NULL == data, "data is NULL"); + char *key = "widget_id"; + char *value[3] = {"org.example.multiclass","class2@org.example.multiclass","class3@org.example.multiclass"}; + multiclass_view *view = NULL; + view = (multiclass_view*)data; + RETM_IF(NULL == view, "view is NULL"); + + DBG("multiclass_app_launch_button_pressed_cb"); + + char *appid = VIEWER_VIEW_APP_PACKAGE_NAME; + int nStatus = app_control_create(&view->service); + RETM_IF(nStatus != APP_CONTROL_ERROR_NONE, "app_control_create error : %s", get_app_control_error(nStatus)); + DBG("app_control_create nStatus=%d",nStatus); + + nStatus = app_control_set_app_id(view->service, appid); + RETM_IF(nStatus != APP_CONTROL_ERROR_NONE, "app_control_set_app_id error : %s", get_app_control_error(nStatus)); + DBG("app_control_set_app_id nStatus=%d",nStatus); + + nStatus = app_control_add_extra_data_array(view-> service, key, value,3); + RETM_IF(nStatus != APP_CONTROL_ERROR_NONE, "app_control_add_extra_data error : %s", get_app_control_error(nStatus)); + DBG("app_control_add_extra_data nStatus=%d",nStatus); + + nStatus = app_control_send_launch_request(view-> service, app_control_view_reply_cb, view); + RETM_IF(APP_CONTROL_ERROR_NONE != nStatus, "app_control_send_launch_request failed :%s", get_app_control_error(nStatus)); + ui_utils_label_set_text(view->label, "App launch requested.", "left"); +} + +static void app_control_view_reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *data) +{ + RETM_IF(NULL == data, "data is NULL"); + + multiclass_view *view = NULL; + view = (multiclass_view*)data; + RETM_IF(NULL == view, "view is NULL"); + + if(result == APP_CONTROL_RESULT_SUCCEEDED) + { + int result; + char *app_id; + + if(reply != NULL) + { + result = app_control_get_app_id(reply, &app_id); + RETM_IF(APP_CONTROL_ERROR_NONE != result, "app_control_create failed :%s", get_app_control_error(result)); + DBG("app_id is %s", app_id); + + ui_utils_label_set_text(view->label, "App launched successfully.", "left"); + } + } +} + +static void _app_destroy_cb(void* this) +{ + RETM_IF(NULL == this, "data is NULL"); + + multiclass_view *view = NULL; + view = (multiclass_view*)this; + RETM_IF(NULL == view, "view is NULL"); + app_control_destroy(view->service); + SAFE_DELETE(view->view); + SAFE_DELETE(view); +} + +#endif \ No newline at end of file