Only someone from cloud nine (Ban Ki-Moon of the UN and the Swedish PM) could expect nations with very different aims and problems to agree on a definite program, let alone arrive at a "legally binding" treaty.
The EU may act as a unit, but all others will contribute as they see fit and as they become affected.